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

how to use this extensions with HTTPMethodView? #42

Closed
hsz1273327 opened this issue Sep 8, 2017 · 6 comments
Closed

how to use this extensions with HTTPMethodView? #42

hsz1273327 opened this issue Sep 8, 2017 · 6 comments
Labels

Comments

@hsz1273327
Copy link

I try to use sanic-openapi with HTTPMethodView like blow:

class EmailSource(HTTPMethodView):

    @doc.summary("Fetches a user by ID")
    @doc.produces({ "user": { "name": str, "id": int } })
    def get(self, request):
       
        return json({"message":'I am get method'})

but /swagger can not show the docs
image

@mholiv
Copy link

mholiv commented Jan 18, 2018

Is this a supported use case? Also running into this issue.

@aranya-danno
Copy link

+1

1 similar comment
@xinlei3166
Copy link

+1

@logileifs
Copy link

+1

@Chaoyingz
Copy link

Hope it update soon.

@stale
Copy link

stale bot commented Oct 6, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is incorrect, please respond with an update. Thank you for your contributions.

@stale stale bot added the stale label Oct 6, 2019
@stale stale bot closed this as completed Nov 5, 2019
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

6 participants