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

Does connexion[swagger.yaml] supports Flask MethodView? #864

Closed
bharat-gera opened this issue Jan 31, 2019 · 3 comments
Closed

Does connexion[swagger.yaml] supports Flask MethodView? #864

bharat-gera opened this issue Jan 31, 2019 · 3 comments
Labels

Comments

@bharat-gera
Copy link

bharat-gera commented Jan 31, 2019

Description

I have developed API using Flask MethodView and wrapped these API using connexion Swagger.yaml, but I'm confused how to point the operationID to a specific http method(GET,POST,PUT).I have tried by just giving the class Name but unable to route request to specific method.

Expected behaviour

It gives error TypeError: Object of type 'Resource Class Name' is not JSON serializable.

Actual behaviour

should call that specific method of Resource class.

  • Connexion version: 2.2.0

Can anybody help with the issue?

@dtkav
Copy link
Collaborator

dtkav commented Feb 3, 2019

Hey @bharat-gera - there is an open pull request awaiting review here: #847

@dtkav dtkav added the question label Feb 3, 2019
@dtkav
Copy link
Collaborator

dtkav commented Feb 3, 2019

closing as a duplicate of #359

@dtkav dtkav closed this as completed Feb 3, 2019
@bharat-gera
Copy link
Author

Cool, I missed that pull request. Thanks!

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

No branches or pull requests

2 participants