Create a rest API with Flask in less than 10 minutes

Let’s start

Installing Flask and a little bit more


Creating environment and installing flask lib

Create some methods

Class and methods with route defined

Run your rest API

Postman first test

That is it

Adding database

Create your database or get one already done and populated

Folder database and db file
Connecting with database file
Listing IDs from employees
Create employee method
Delete employee method
Successful message creating employee
Successful message deleting employee

Next steps

Number validation



Software nerd and data engineer enthusiast