An open API service indexing awesome lists of open source software.

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.

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
```