https://github.com/coderbenny/django-store-api
Fashion Store Django Backend API | This API provides endpoints to manage clients, sales, inventory, and revenue for a fashion store.
https://github.com/coderbenny/django-store-api
django django-project django-rest-framework
Last synced: 5 months ago
JSON representation
Fashion Store Django Backend API | This API provides endpoints to manage clients, sales, inventory, and revenue for a fashion store.
- Host: GitHub
- URL: https://github.com/coderbenny/django-store-api
- Owner: coderbenny
- Created: 2024-06-01T12:22:36.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-11T20:55:24.000Z (almost 2 years ago)
- Last Synced: 2024-06-12T05:11:04.295Z (almost 2 years ago)
- Topics: django, django-project, django-rest-framework
- Language: Python
- Homepage: https://django-store-api.onrender.com/
- Size: 52.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fashion Store Django Backend API
Welcome to the Fashion Store Django Backend API! This API provides endpoints to manage clients, sales, inventory, and revenue for a fashion store.
## Author
Benny Hinn
## Endpoints
### Get All Clients
- **URL**: `/api/clients/`
- **Method**: GET
- **Description**: Fetches all clients from the database.
### Get All Sales
- **URL**: `/api/sales/`
- **Method**: GET
- **Description**: Retrieves all sales records from the database.
### Get Number of Sales
- **URL**: `/api/total-sales/`
- **Method**: GET
- **Description**: Retrieves all sales records from the database.
### Get Total Revenue
- **URL**: `/api/total-revenue/`
- **Method**: GET
- **Description**: Calculates and returns the total revenue generated from all sales.
### Get Inventory
- **URL**: `/api/inventory/`
- **Method**: GET
- **Description**: Retrieves the current inventory of products available in the store.
### Get All Clients
- **URL**: `/api/clients/`
- **Method**: POST
- **Description**: Retrieves all clients from the database.
## Technologies Used
- Django
- Django REST Framework
- SQLite