CRUD REST API using Python3, Flask, FastAPI and PostgreSQL database
- Import Flask and FastAPI packages
- Use In-memory list approach for REST API CRUD(GET,POST,PUT,DELETE) methods
- Create Users API using FastAPI by creating a fake database using pydantic inheriting from BaseModel
- Create Cars API using Flask and PostgreSQL database using SQLAlchemy ORM to have consistent data
- Create Users API using FastAPI Async SQL (Relational Database) using PostgreSQL database and SQLAlchemy ORM to have consistent data
- Download dummy data from https://www.mockaroo.com/ for testing an API
- Use Postman or an extension on VScode called Thunder client or swagger UI to test the REST API
- Programming Language
- Python3
- Flask Framework
- FastAPI Framework
- Flask-migrate
- Flask-SQLAlchemy
- Jsonify
- Pydantic
- Request
- Uvicorn server
- json
- passlib
- uuid
- databases
- typing
- bcrypt
- Postman
- Thunder Client
- Insomnia
- Swagger UI
- VSCode
-
Flask
- python app.py or flask run
- locahost:5000/api
-
FastAPI
- uvicorn main:app --reload
- localhost:8000/api