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

Integrate with Flask RESTplus extension #407

Open
bl4ckst0ne opened this issue Sep 20, 2020 · 8 comments
Open

Integrate with Flask RESTplus extension #407

bl4ckst0ne opened this issue Sep 20, 2020 · 8 comments
Labels
type: feature New feature implementation

Comments

@bl4ckst0ne
Copy link

Hey,
I am building a REST API server via flask-restx (a fork of flask-restplus, which is a fork of flask-restful). In those extensions, they have models, for representing, validating and marshalling the data of the API. Also, there is a feature to generate swagger file using those models.

So, I thought it will be great if we can add an imtegration to that, just like Flask-WTF. :)

I will be glad to help, if you want to :).

@bl4ckst0ne
Copy link
Author

Is there anyone to discuss with about the idea?

@VetriMaaran
Copy link

I have also created an API with flask-restX and MongoDB. Can you elaborate on what you need?

@bl4ckst0ne
Copy link
Author

@VetriMaaran, sure. Essentially, I want a converter from MongoEngine's model to flask-restx's model & request parser. That way, you don't need to write your models twice.

Actually, I don't know if it helps, since there is an open issue for redesigning the models system. Yet, I am not sure when it should occur.

@insspb
Copy link
Collaborator

insspb commented Dec 26, 2020

@bl4ckst0ne any prs are welcome

@insspb insspb added the type: feature New feature implementation label Dec 26, 2020
@pythonhubdev
Copy link

So it is like

mongoengine.StringField()

is to be converted to fields.String automatically am I right?

@bl4ckst0ne
Copy link
Author

@pythonhubpy Correct! Yet, this is a simple case. :)

@pythonhubdev
Copy link

pythonhubdev commented Dec 27, 2020

@pythonhubpy Correct! Yet, this is a simple case. :)

Yeah I too thought of this we shall try to make it has a pull request.
Let's work.on it.

@insspb
Copy link
Collaborator

insspb commented Jul 20, 2022

Hi @bl4ckst0ne, @pythonhubpy , @VetriMaaran I just checked Flask-RESTPlus and it considered as unmaintained. It was forked to Flask RESTX, but Flask RESTX has last activity only in 2021, so it looks like not heavily maintained too.

There also was no PR's proposed from anybody on this integration.

As I am alone here right now, I think that such integration has no big sense. What you think? I am not working with Flask right now, and maybe did not see something, or some project, that replace Flask RESTX and Flask RESTPlus

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

No branches or pull requests

4 participants