flask-empty icon indicating copy to clipboard operation
flask-empty copied to clipboard

Create API example

Open italomaia opened this issue 6 years ago • 7 comments

Right now we have a blog example using sqlalchemy. It would be nice to have a full API example using good practices (OpenAPI, Swagger, Rest).

italomaia avatar Sep 29 '19 17:09 italomaia

Hi I would like to contribute to this, can you please describe more precisely as to what has to be done, I am new to python

Apoorva-13 avatar Oct 01 '19 07:10 Apoorva-13

Sure thing @Apoorva-13 Thanks for your interest! Gonna get a proper description for this by the end of the day (GMT+2)

italomaia-bk avatar Oct 01 '19 08:10 italomaia-bk

So @Apoorva-13 flask empty has a examples folder with a blog example. The idea is to have another example app made with flask empty there that uses a different set of functionality provided by the boilerplate. In this case, it would be an API example. This example should be different from the blog example that is already there and should use the extensions suggested by flask-empty during the creation step (marshmallow, etc). After reading the docs of the extensions already provided, I would also suggest that you use any other packages you believe could make this example more interesting, like swagger for automatic api documentation.

So, these are the requirements:

  • the example should be a good use case for an api
  • should show authentication and permissioning usage
  • should use the extensions suggested by flask-empty where possible (other extensions can be added)
  • should implement parameter validation
  • should have tests
  • should have an readme explaining what was done and what is required to run it
  • should be clear (PEP8) and commented

As you say you're new to python, I would like to know if you're also new to web development. If the answer is yes to this question, this issue might be quite challenging for you. I don't say it to desmotivate you, but to have you aware of the degree of commitment you might have to put on this.

In case of any other questions, please, let me know.

italomaia avatar Oct 01 '19 18:10 italomaia

Maybe i can help in this issue, good practice for me, since i develop web applications in Flask.

vinimmelo avatar Oct 04 '19 15:10 vinimmelo

Let me know if you need help @vinimmelo

italomaia-bk avatar Oct 07 '19 10:10 italomaia-bk

If no one is assigned or working on this issue then @italomaia @italomaia-bk Can you please assign this to me. Thanks

Amn04 avatar Oct 20 '22 13:10 Amn04

@Amn04 Go for it!

italomaia avatar Oct 20 '22 22:10 italomaia