jmcarp / jmcarp/flask-apispec

How to register a MethodResource with a blueprint ?

Open
#75 2 comments 6 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
652
Forks
151
PR merge metrics
No merged PRs in 30d

Description

Hi,
I see in the doc and in the petstore example how to register a MethodResource class with

```
app.add_url_rule('/cat/', view_func=CatResource.as_view('CatResource'))
docs.register(CatResource, endpoint='CatResource')
```

I'm using blueprints. With function endpoints, I could use

swagger.register(get_demande, blueprint=BLUEPRINT_NAME)

However I have a hard time finding how to register class views, could not find a working mix of the above. Does anyone have an example ?

Thanks

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.