avyayjain / Scalable_REST_API_Structure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is A Scalable rest API project

Installation

  1. Clone the repository
  2. create a virtual environment
python -m venv venv
  1. Install the requirements to install the requirements run the following command
pip install -r requirements.txt
  1. do alembic migration for the postgres db
alembic revision --autogenerate -m "initial migration"
alembic upgrade head

IMP:- don't forget to change the postgres db url in the alembic.ini file 5. run the server

python main.py

Testing

  1. you can go to the swagger documentation by going to the following url
http://localhost:8000/docs
  1. you can also test the api by using the postman collection by using the file by the name of Scalable.postman_collection.json

Features of the Scalable rest API structure

  1. User can register and login
  2. After a login user will recieve a uuid as a token which will help in Authorization of the user
  3. after authentication user can get it's details and also change thier use name
  4. after each successive login user will get a uuid which will also help in getting data from redis db
  5. users can also get the data from the redis db

About


Languages

Language:Python 100.0%