Perform CRUD operations on a database for a User resource using a REST API
348
This project is a Flask application that allows users to perform CRUD (Create, Read, Update, Delete) operations on a MongoDB database for a User resource using a REST API. The REST API endpoints can be accessed via HTTP requests and can be tested using Postman.
To run this application, you will need:
git clone https://github.com/djharshit/user-data-apicd user-data-apipython3 -m venv envsource env/bin/activatepip install -r requirements.txtapp.py to your own connection stringpython app.pyOnce the application is running, you can access the REST API endpoints using Postman or any other HTTP client.
The available endpoints are:
/users: Returns a list of all users/users/<user_id>: Returns a specific user/users: Creates a new user/users/<user_id>: Updates a specific user/users/<user_id>: Deletes a specific userContent type
Image
Digest
sha256:27747f374…
Size
36.7 MB
Last updated
over 1 year ago
docker pull djharshit/user-data-api:517768d