Forum Discussion

Mkulkarni19's avatar
Regular Visitor
3 years ago

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?


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.



Mahesh Kulkarni

1 Reply

  • iawebwork's avatar
    New Contributor

    Hi Mahesh,


    Kindly can you share the solution to include the response headers in to the api json?