I am used to download a definition file on the swagger page of an api and generate client code for it.
However with strapi I cant find a swagger-file download link on http://localhost:1337/documentation/v1.0.0 …
Ciao!
I am here because I am looking for the same thing. I want to generate client code, in order to do that I need access to openapi.json/yaml or similar.
I didn’t find what I am looking for but the workaround is to inspect the documentation HTTP response:
Same here. It would be great if Strapi documentation plugin would spit out some sort of schema file that could be consumed by openapi generator. In my case, I had to switch from REST to GraphQL just to be able to generate the frontend query types and hooks for consuming the api.
In most codegens you can paste the relative path of the file as an input path.
In my case I have a next app with a codegen and a strapi app.
My path input path for the codegen is:
…/strapi-app/src/extensions/documentation/documentation/1.0.0/full_documentation.json