The issue is with the server, not the definition. If you add headers, you have 
to make sure those are added to the CORS configuration in the server, otherwise 
the calls are not going to work.

 

 

 

From: <[email protected]> on behalf of Dinesh Babu 
<[email protected]>
Reply-To: "[email protected]" 
<[email protected]>
Date: Thursday, 6 April 2017 at 3:17
To: Swagger <[email protected]>
Subject: Re: Header undefined

 

Could you please provide me an example where header and query params as are 
passed as request and getting array of object as response. Right know i hv 
implemented the above said scenario and i am getting 404 error during preflight.

On Wednesday, April 5, 2017 at 11:56:51 AM UTC+5:30, Dinesh Babu wrote: 

could some one on this below example please. provide me the json file similar 
to the below example.

On Tuesday, April 4, 2017 at 7:43:56 AM UTC+5:30, Dinesh Babu wrote: 

I tried with the default example provided by Swagger(PetStore on Heroku). In 
order to explore how it works after introducing header(token), added the 
header(below code for reference). 

 



On Tuesday, April 4, 2017 at 1:30:34 AM UTC+5:30, Ron wrote: 

Are you using swagger-ui or swagger-editor?

Can you share your spec?

 

 

 

From: <[email protected]> on behalf of Dinesh Babu 
<[email protected]>
Reply-To: "[email protected]" <[email protected]>
Date: Monday, 3 April 2017 at 2:02
To: Swagger <[email protected]>
Subject: Header undefined

 

Hi 

 

I have a Rest api which is GET verb, which accepts Authorization as header and 
return type is array of objects. In this scenario i am getting header undefined 
error in swagger.io. But when i copy,paste the script generated by swagger to 
fiddler it work fine. Could some one help on this?. if any one has come across 
this scenario could you please share the json file?.

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to