https://github.com/kirankumar-matham96/python-rest-api
This project implements a RESTful API in Python using Flask.
https://github.com/kirankumar-matham96/python-rest-api
flask flask-api python3 restful-api
Last synced: 3 months ago
JSON representation
This project implements a RESTful API in Python using Flask.
- Host: GitHub
- URL: https://github.com/kirankumar-matham96/python-rest-api
- Owner: kirankumar-Matham96
- Created: 2024-12-07T16:26:19.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-12-07T16:32:23.000Z (7 months ago)
- Last Synced: 2025-02-03T22:44:02.267Z (5 months ago)
- Topics: flask, flask-api, python3, restful-api
- Language: Python
- Homepage:
- Size: 6.31 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.MD
Awesome Lists containing this project
README
# RESTFul API with Python/Flask
This project implements a RESTful API in Python using Flask.
## Features
- Fetches initial product data from the [Dummy JSON API](https://dummyjson.com/products).
- Allows CRUD operations on the fetched data.## Endpoints
- `GET /get-products`: Retrieve all products.
- `POST /add-product`: Add a new product (validation included).
- `PUT /update-proiduct/`: Update an existing product.
- `DELETE /delete-proiduct/`: Delete a product.## Setup
1. Clone the repository.
2. Create a virtual environment and install the required dependencies:
```bash
python3 -m venv venv
source venv/bin/activate # Use venv\Scripts\activate on Windows
pip install -r requirements.txt
```