This project is a REST CRUD API created using flask and mongodb.
Clone the project
git clone https://github.com/Abbashozefa/flask-rest-crud.gitGo to the project directory
cd flask-rest-crudInstall dependencies
pip install requirements.txtStart the server
flask runPull Image
docker pull abbashozefa/flask-crud:flask-apiRun Image
docker run -p 5000:5000 abbashozefa/flask-crudThe API has the following endpoints:
- GET /users - Returns a list of all users.
- GET /users/id - Returns the user with the specified ID.
- POST /users - Creates a new user with the specified data.
- PUT /users/id - Updates the user with the specified ID with the new data.
- DELETE /users/id - Deletes the user with the specified ID.
Use POSTMAN to test the endpoints




