Hi,
Is there a way to identify in my REST API whether request has came from Swagger UI or any other source? In other words, can I check for any request parameters (header or query) in my REST API which tells me that request has come from Swagger?
If there is way where I can modify the CURL request from Swagger to always include a header parameter in its request which will indicate my REST API that call has been made from Swagger? Please let me know.
I need my REST API to route to non-production database when call is made from Swagger UI - while for all other calls, it should access production database.
Any help shall be greatly appreciated.
Thanks,
Aman