Skip to content

Commit 1ed1f14

Browse files
jay-lowCopilot
andauthored
fix(hydra): use empty default prefix instead of 'hydra:' (#392)
Co-authored-by: Copilot <[email protected]>
1 parent efb3a78 commit 1ed1f14

File tree

9 files changed

+10
-8
lines changed

9 files changed

+10
-8
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ The documentation of API Platform Create Client can be browsed [on the official
4141

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

44+
**Hint:** If needed, you can customize the Hydra prefix using the `-p` or `--hydra-prefix` option (default: none).
45+
4446
### OpenAPI 3
4547

4648
npm init @api-platform/client https://demo.api-platform.com/docs.json output/ --resource Book --format openapi3

src/generators/NextGenerator.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import NextGenerator from "./NextGenerator.js";
88
const dirname = path.dirname(fileURLToPath(import.meta.url));
99

1010
const generator = new NextGenerator({
11-
hydraPrefix: "hydra:",
11+
hydraPrefix: "",
1212
templateDirectory: `${dirname}/../../templates`,
1313
});
1414

src/generators/NuxtGenerator.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const dirname = path.dirname(fileURLToPath(import.meta.url));
99

1010
test("Generate a Nuxt app", () => {
1111
const generator = new NuxtGenerator({
12-
hydraPrefix: "hydra:",
12+
hydraPrefix: "",
1313
templateDirectory: `${dirname}/../../templates`,
1414
});
1515
const tmpobj = tmp.dirSync({ unsafeCleanup: true });

src/generators/QuasarGenerator.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const dirname = path.dirname(fileURLToPath(import.meta.url));
99

1010
test("Generate a Quasar app", async () => {
1111
const generator = new QuasarGenerator({
12-
hydraPrefix: "hydra:",
12+
hydraPrefix: "",
1313
templateDirectory: `${dirname}/../../templates`,
1414
});
1515
const tmpobj = tmp.dirSync({ unsafeCleanup: true });

src/generators/ReactGenerator.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const dirname = path.dirname(fileURLToPath(import.meta.url));
99

1010
test("Generate a React app", () => {
1111
const generator = new ReactGenerator({
12-
hydraPrefix: "hydra:",
12+
hydraPrefix: "",
1313
templateDirectory: `${dirname}/../../templates`,
1414
});
1515
const tmpobj = tmp.dirSync({ unsafeCleanup: true });

src/generators/ReactNativeGenerator.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const dirname = path.dirname(fileURLToPath(import.meta.url));
99

1010
test("Generate a React app", () => {
1111
const generator = new ReactNativeGenerator({
12-
hydraPrefix: "hydra:",
12+
hydraPrefix: "",
1313
templateDirectory: `${dirname}/../../templates`,
1414
});
1515
const tmpobj = tmp.dirSync({ unsafeCleanup: true });

src/generators/VueGenerator.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const dirname = path.dirname(fileURLToPath(import.meta.url));
99

1010
test("Generate a Vue app", () => {
1111
const generator = new VueGenerator({
12-
hydraPrefix: "hydra:",
12+
hydraPrefix: "",
1313
templateDirectory: `${dirname}/../../templates`,
1414
});
1515
const tmpobj = tmp.dirSync({ unsafeCleanup: true });

src/generators/VuetifyGenerator.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const dirname = path.dirname(fileURLToPath(import.meta.url));
99

1010
test("Generate a Vuetify app", async () => {
1111
const generator = new VuetifyGenerator({
12-
hydraPrefix: "hydra:",
12+
hydraPrefix: "",
1313
templateDirectory: `${dirname}/../../templates`,
1414
});
1515
const tmpobj = tmp.dirSync({ unsafeCleanup: true });

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ async function main() {
3232
.option(
3333
"-p, --hydra-prefix [hydraPrefix]",
3434
"The hydra prefix used by the API",
35-
"hydra:"
35+
""
3636
)
3737
.option("--username [username]", "Username for basic auth (Hydra only)")
3838
.option("--password [password]", "Password for basic auth (Hydra only)")

0 commit comments

Comments
 (0)