Hands-On Guide to Restful API using Flask Python.
6 min readApr 5, 2022
My article is for everyone! Non-members can click on this link and jump straight into the full text!!
This article aims to elevate one’s understanding of Flask Restful Framework from the initial concepts to advanced use-cases.
Table of contents
- Introduction
- Flask
- Rest API
- Flask rest API
- Requirements
- A sample API for hello-world
- How blueprint works in the flask
- CRUD operation API with Sqlalchemy
- One-to-Many relationships (foreign key)
- One-to-One relation
- Token-based User Authentication API
- Reference
Introduction
We are going to focus more on practicals rather than on theoretical concepts. We will try to implement each topic in the code.
Requirements
python
flask
flask-restful
What is Flask?
- Flask is a microframework for web development in Python.
- This means flask provides you only with the absolutely necessary tools…