Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token in the header to fetch swagger.json #115

Closed
AlexeKorneev opened this issue Mar 23, 2017 · 2 comments
Closed

Token in the header to fetch swagger.json #115

AlexeKorneev opened this issue Mar 23, 2017 · 2 comments

Comments

@AlexeKorneev
Copy link

AlexeKorneev commented Mar 23, 2017

Hi,

I would need your help again, struggling with quite simple issue:
load Swagger resource file into App object:
app = App.create('http://petstore.swagger.io/v2/swagger.json')

In order to work with swagger.json file, first we need to fetch it, like it's written above, but what if with swagger.json located behind some gateway that require specific 'token' (header) to get that file. How to provide already some specific header (token) to fetch that swagger.json for further testing of endpoints?
What would be the best approach?

Thank you in advance!

@mission-liao
Copy link
Member

Hi, there was a relative issue before #107.

And the corresponding document related to your issue https://github.com/mission-liao/pyswagger/blob/master/docs/md/tutorial/restricted_service.md

This fix is included in v0.8.27. Please feel free to let me know if you have any further questions.

@AlexeKorneev
Copy link
Author

Thanks again for your help.
Problem is solved in very similar way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants