Skip to content

Commit

Permalink
[Task] Change route from .json to /json (#501)
Browse files Browse the repository at this point in the history
* Change route from .json to /json

* Change route here too
  • Loading branch information
mattamon authored Oct 18, 2024
1 parent 505ea58 commit 24fb6f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit 24fb6f0

Please sign in to comment.