Ask a Question

Intercept api response by using swagger open api to introduce headers.

Mkulkarni19
Regular Visitor

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

1 REPLY 1
iawebwork
New Contributor

Hi Mahesh,

 

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

 

Regards

cancel
Showing results for 
Search instead for 
Did you mean: