This repo contains a simple Flask API project.
This Flask API project showcases basic CRUD (Create, Read, Update, Delete) operations on a User resource. It is built using Flask, a Python web framework, and connects to a MongoDB database.
To run the Flask API, follow these steps:
-
Clone this repository to your local machine:
git clone <repository-url>
-
Navigate to the project directory:
cd 'Flask-API'
-
Install the required dependencies:
pip install -r requirements.txt
-
Start the Flask API:
python app.py
The API will be accessible at http://localhost:5000
.
- GET /users: Retrieve a list of all users.
- GET /users/: Retrieve a user by ID.
- POST /users: Create a new user.
- PUT /users/: Update an existing user by ID.
- DELETE /users/: Delete a user by ID.
- Flask
- MongoDB
- Python