Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Task] Change route from .json to /json #501

Merged
merged 3 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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: 1 addition & 1 deletion doc/00_Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ https://<your-pimcore-host>/pimcore-studio/api/docs

You can also access the OpenApi documentation in JSON format by navigating to the following URL:
```
https://<your-pimcore-host>/pimcore-studio/api/docs.json
https://<your-pimcore-host>/pimcore-studio/api/docs/json
```

It is also possible to export the OpenApi documentation as a JSON file by running the following command:
Expand Down
2 changes: 1 addition & 1 deletion src/OpenApi/Controller/OpenApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function index(#[MapQueryString] LocaleParameter $localeParameter = new L
);
}

#[Route('/docs.json', name: 'pimcore_studio_api_docs_json', methods: ['GET'])]
#[Route('/docs/json', name: 'pimcore_studio_api_docs_json', methods: ['GET'])]
public function openapi(#[MapQueryString] LocaleParameter $localeParameter = new LocaleParameter()): JsonResponse
{
$config = $this->openApiService->getConfig();
Expand Down
Loading