Improving the Swagger Docs for Management API #20186
Replies: 6 comments 5 replies
-
I don't see any reason why this wouldn't be welcome @OwainWilliams - thanks for the offer. @kjac - just checking with you if you see any downside to this? Also @hifi-phil - would this be of any benefit to for the MCP server? |
Beta Was this translation helpful? Give feedback.
-
Can Difference in Swagger UI: https://stackoverflow.com/a/78090722 https://swagger.io/docs/specification/v3_0/grouping-operations-with-tags/ |
Beta Was this translation helpful? Give feedback.
-
@bjarnef I just tested this and yes, both work ![]() As you'll see in the screenshot, the Summary shows on the closed accordion view and the Description is given within the body of the accordion |
Beta Was this translation helpful? Give feedback.
-
@OwainWilliams this would be very welcome indeed ❤️ We put in the work to document the Delivery API, but not the Management API - simply because we couldn't anticipate its adoption outside of the CMS core itself, and thus we couldn't really justify the time spent. You might be able to lift some ideas from the Delivery API Swagger docs... although they're likely a bit more comprehensive than the Management API Swagger docs will be, since adding examples to the entire Management API will be a monstrous task. |
Beta Was this translation helpful? Give feedback.
-
Just looking at the best way to attack this - if I fork the repo as usual, I might get on socials and see if anyone else wants to join me in getting this updated. What's the best way to do this, people fork from my branch and then it's a single PR? |
Beta Was this translation helpful? Give feedback.
-
![]() |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I've been doing a lot of work with the Management API recently and as useful as it is, I believe it could be improved upon. I was going to start making a PR to add Endpoing Descriptions on each endpoint. This is going to be a big task so before I did start, I wanted to check, is it something that would be appreciated?
What I'm suggesting is instead of this :
have
This would then show up in the Swagger Docs and gives more useful information.
e.g. An example of what I've done with a custom endpoint.
If this would be welcomed, then I could maybe find others to help with this task so that the docs are updated as quickly as possible
Beta Was this translation helpful? Give feedback.
All reactions