Is it possible to change data source in swagger?
Options
Juraj-QikBuild
Member ✭
Hi, my question is that if it's possible to change data-source for auto-generated swagger page. Currently, you can't change headers, therefore swagger always use live data.
Tagged:
Best Answer
-
Hi there! Are you referring to testing your APIs via the Swagger docs and using your test data source?
I don't believe you can add headers from there, so I'd recommend using something like Postman because you can add the
X-Data-Source: test
header to your request (swap your data source name if it's not test).The cool thing is that you can import your Swagger docs right into Postman, so you can easily add all your endpoints with the click of a button.
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