Python API With Flask And Postman – Post and Get Methods

This is the second video for the “Python API with Flask” series, showing how to make POST and GET commands towards a dummy database, which is a python list in our case.

With Python and Flask you can hit the moon! Or you can try it! 🙂

We are using only CREATE and READ commands – creating a task (POST) and reading it (GET).

Additionally, reading it by number and name is implemented as well (GET).

This is how the code looks like (run it with python app.py from the terminal):

The tests should be created in the same folder. These should be successful:

Finally, the YouTube video is here:

Enjoy it!

Tagged with: , , , , , , ,