Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ The documentation of API Platform Create Client can be browsed [on the official

npm init @api-platform/client https://demo.api-platform.com/ output/ --resource Book

**Hint:** If needed, you can customize the Hydra prefix using the `-p` or `--hydraPrefix` option (default: none).
Comment thread
jay-low marked this conversation as resolved.
Outdated

### OpenAPI 3

npm init @api-platform/client https://demo.api-platform.com/docs.json output/ --resource Book --format openapi3
Expand Down
2 changes: 1 addition & 1 deletion src/generators/NextGenerator.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import NextGenerator from "./NextGenerator.js";
const dirname = path.dirname(fileURLToPath(import.meta.url));

const generator = new NextGenerator({
hydraPrefix: "hydra:",
hydraPrefix: "",
templateDirectory: `${dirname}/../../templates`,
});

Expand Down
2 changes: 1 addition & 1 deletion src/generators/NuxtGenerator.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const dirname = path.dirname(fileURLToPath(import.meta.url));

test("Generate a Nuxt app", () => {
const generator = new NuxtGenerator({
hydraPrefix: "hydra:",
hydraPrefix: "",
templateDirectory: `${dirname}/../../templates`,
});
const tmpobj = tmp.dirSync({ unsafeCleanup: true });
Expand Down
2 changes: 1 addition & 1 deletion src/generators/QuasarGenerator.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const dirname = path.dirname(fileURLToPath(import.meta.url));

test("Generate a Quasar app", async () => {
const generator = new QuasarGenerator({
hydraPrefix: "hydra:",
hydraPrefix: "",
templateDirectory: `${dirname}/../../templates`,
});
const tmpobj = tmp.dirSync({ unsafeCleanup: true });
Expand Down
2 changes: 1 addition & 1 deletion src/generators/ReactGenerator.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const dirname = path.dirname(fileURLToPath(import.meta.url));

test("Generate a React app", () => {
const generator = new ReactGenerator({
hydraPrefix: "hydra:",
hydraPrefix: "",
templateDirectory: `${dirname}/../../templates`,
});
const tmpobj = tmp.dirSync({ unsafeCleanup: true });
Expand Down
2 changes: 1 addition & 1 deletion src/generators/ReactNativeGenerator.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const dirname = path.dirname(fileURLToPath(import.meta.url));

test("Generate a React app", () => {
const generator = new ReactNativeGenerator({
hydraPrefix: "hydra:",
hydraPrefix: "",
templateDirectory: `${dirname}/../../templates`,
});
const tmpobj = tmp.dirSync({ unsafeCleanup: true });
Expand Down
2 changes: 1 addition & 1 deletion src/generators/VueGenerator.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const dirname = path.dirname(fileURLToPath(import.meta.url));

test("Generate a Vue app", () => {
const generator = new VueGenerator({
hydraPrefix: "hydra:",
hydraPrefix: "",
templateDirectory: `${dirname}/../../templates`,
});
const tmpobj = tmp.dirSync({ unsafeCleanup: true });
Expand Down
2 changes: 1 addition & 1 deletion src/generators/VuetifyGenerator.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const dirname = path.dirname(fileURLToPath(import.meta.url));

test("Generate a Vuetify app", async () => {
const generator = new VuetifyGenerator({
hydraPrefix: "hydra:",
hydraPrefix: "",
templateDirectory: `${dirname}/../../templates`,
});
const tmpobj = tmp.dirSync({ unsafeCleanup: true });
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async function main() {
.option(
"-p, --hydra-prefix [hydraPrefix]",
"The hydra prefix used by the API",
"hydra:"
""
)
.option("--username [username]", "Username for basic auth (Hydra only)")
.option("--password [password]", "Password for basic auth (Hydra only)")
Expand Down
Loading