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

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.

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