- Users: http://localhost:8000/users - to create, list and update, delete users
- Login: http://localhost:8000/login - to login as a user
- Customers : http://localhost:8000/customers - to create , list , update , delete customers ( only works if logged in as a user)
- Clone this repository locally
- Install docker locally
- Start docker engine locally
- Go to the cloned repository directory i.e. Python-API
- Run docker build as follows :
docker build -t python-api .
- Run container as follows:
docker-compose -f docker-compose.yml up -d
- Test the routes using POSTMAN tool or other equivalent tools.
- Please refer the automatic API documentation in the URL: http://localhost:8000/docs
- Stop and remove container as follows:
docker-compose -f docker-compose.yml down -v