https://github.com/essiencodecraft/restapis
https://github.com/essiencodecraft/restapis
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/essiencodecraft/restapis
- Owner: EssienCodeCraft
- Created: 2024-12-10T16:42:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-11T01:41:09.000Z (over 1 year ago)
- Last Synced: 2025-02-13T09:36:16.104Z (about 1 year ago)
- Language: Python
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RESTAPIs
CRUD REST API using Python3, Flask, FastAPI and PostgreSQL database
# Task
- 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
# Technologies
- Programming Language
- Python3
# Python Framework
- Flask Framework
- FastAPI Framework
# Python Dependencies using pip
- Flask-migrate
- Flask-SQLAlchemy
- Jsonify
- Pydantic
- Request
- Uvicorn server
- json
- passlib
- uuid
- databases
- typing
- bcrypt
# API Testing Tools
- Postman
- Thunder Client
- Insomnia
- Swagger UI
# Code Editor
- VSCode
# Execute Flask & FastAPI
- Flask
- python app.py or flask run
- locahost:5000/api
- FastAPI
- uvicorn main:app --reload
- localhost:8000/api