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

[Question] flask-RESTful or flask-restplus #1

Closed
wtkmn opened this issue Jul 4, 2019 · 3 comments
Closed

[Question] flask-RESTful or flask-restplus #1

wtkmn opened this issue Jul 4, 2019 · 3 comments

Comments

@wtkmn
Copy link

wtkmn commented Jul 4, 2019

Hi!
I am using flask_accepts together with flask_restplus.
To do so, I need to change some code of this library.
My question is that, with which is this library intended to be used, flask_RESTful or flask_restplus ?

@apryor6
Copy link
Owner

apryor6 commented Jul 4, 2019

It should work with both. Could you be more specific about what changes were necessary?

@wtkmn
Copy link
Author

wtkmn commented Jul 7, 2019

I made 2 changes to decorators.py
I changed the first line to

from werkzeug.wrappers import Response

This is because the original code raised import error.
commit log

And then, line 22

from flask_restplus import reqparse

This is also due to import error.
commit log

Thansks.

apryor6 added a commit that referenced this issue Jul 7, 2019
@apryor6
Copy link
Owner

apryor6 commented Jul 7, 2019

Thanks. Updated

@apryor6 apryor6 closed this as completed Jul 7, 2019
apryor6 added a commit that referenced this issue Jul 7, 2019
apryor6 pushed a commit that referenced this issue Sep 9, 2019
apryor6 pushed a commit that referenced this issue Sep 26, 2019
Refactor for a more functional approach
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