-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Swagger and openapi json files do not exists #2143
Comments
Hi @Justin-van-der-Velden, I've asked Strapi core engineers about it, I will get back to you as soon as I know more. |
Hi again @Justin-van-der-Velden. If the issue persists I will follow-up with Strapi engineers. |
Oh, sorry, I've just noticed something 💡 |
I have the same issue and I'm using Seems like openapi.json was never available and it was requested a couple of times in the past:
I believe it would be a nice feature to add because it will allow type generation like this |
Thanks for the additional information, @faessler. Everytime I asked Strapi engineers about full Open API compliance in the past, the answer was that Strapi's Content API can't be made fully Open API compliant due to its complex/custom nature, and it will become even more complex in Strapi 5. The only solution would be that the Strapi team builds its own custom Open API spec, but it's not on our roadmap. I'll follow-up with engineers on this issue but I think the Documentation plugin is currently deprioritized while they're hard at work polishing the upcoming Strapi 5. |
…ion/openapi.json route (strapi/documentation#2143)
Hey @pwizla 🙋🏼♂️ Thanks for your quick reply. I've opened a PR with the changes needed to have the Not sure how we go from here? I guess we also need to update the Strapi documentation of the documentation plugin? |
Thank you very much, @faessler! Much appreciated 🤗
I'm available if you have any other questions. |
Perfect, @faessler, thank you! Your docs PR is approved. I'll wait for engineers to merge the corresponding strapi/strapi PR before merging the docs PR 👀 |
Just stumbled over this and it would be great if this was fixed. I guess I can try to copy the json by hand out of the swagger-ui page, but that's a huge pain. |
Hi there. The corresponding strapi/strapi (20871) is still under review. Engineers are busy polishing Strapi 5.x.x. |
Thats a bummer. Looking forward to get access to openapi.json file with all the schemas |
Wondering, if this would be available for 4.x.x then? Can it be backported? |
…) (#20871) Co-authored-by: Marc Roig <[email protected]>
It was merged into the @Marc-Roig, @pwizla can it also be added for |
Hi @faessler, I'm not sure the strapi/strapi #20871 PR will also be ported to Strapi 5. @Marc-Roig, any idea? If yes, I can also port the related docs PR (#2159) to Strapi 5. |
Hi @pwizla & @Marc-Roig, it's been some time and I wanted to ask if we could port this to v5? Then we can finally close this issue 🙂🤞 |
Hi @faessler. I'm convinced our users would be happy if this is ported to v5. I could handle the documentation part if you want. However I'll be off for end-of-year holidays in a few hours. I could get back to this with pleasure in January. Please feel free to ping me again by this time. cc (@Marc-Roig) |
Link to the documentation page or resource
https://docs-v3.strapi.io/developer-docs/latest/development/plugins/documentation.html#overriding-the-suggested-documentation
Describe the bug
Hello,
The documentation of the plugin tells me that the plugin creates a swagger.json and an openapi.json file. I just have the default settings and not tweaked with url's. Somehow these files are not reachable. I get a 404 when I try to go to:
http://localhost:1337/documentation/v1.0.0/swagger.json
Strapi version:
4.25.3
Strapi documentation plugin version:
4.25.2
Is there some tweaking needed to acces those files?
Additional context
No response
Suggested improvements or fixes
No response
Related issue(s)/PR(s)
No response
The text was updated successfully, but these errors were encountered: