is it possible to dynamically get an API description ?
![Guillaume Maison](https://us.v-cdn.net/6037124/uploads/userpics/638QVYW6SQEW/n2ZCBGXUTJ72F.jpg)
Hi,
i'd like to know if it's possible to get all the details of an API endpoints dynamically ?
ie : passing a specific parameter to the end point to get it's description ? As a swagger doc but from a specific API endpoint call.
Thanks for your answer !
Best regards,
Guillaume
Best Answer
-
So what I would do is make an endpoint in Xano for this. Have the endpoint call the Xano OpenAPI spec endpoint (the "apispec" link under the title in your swagger page) for your app. Load that into an object with yaml_decode, and then return the member for the particular endpoint you are interested in (presumably passed as an argument to our endpoint). This would generate JSON for the shape relatively straightforwardly.
Answers
-
@Ray Deck that's the exact thing i wanted ! Many thanks ! :)
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback