Intercept api response by using swagger open api to introduce headers.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2022
11:40 PM
02-06-2022
11:40 PM
Intercept api response by using swagger open api to introduce headers.
Hi Team,
we wanted to introduce headers in the api response using from swagger definition.
As per my understanding Swagger purpose is only for api documentation but still wanted to confirm that is it possible to intercept the api response from swagger definition and insert the response headers?
FYI..
I have modified the swagger open api json ()and included the response headers into it. I can see the headers on swagger UI but while executing the actual api , I am not getting those headers as part of response headers.
Thanks,
Mahesh Kulkarni
Labels:
- Labels:
-
Swagger Editor
-
Swagger UI
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2022
03:53 AM
04-23-2022
03:53 AM
Hi Mahesh,
Kindly can you share the solution to include the response headers in to the api json?
Regards
