This project provides a basic API for a store management system, developed in a Spring Boot environment. The API facilitates CRUD operations for managing users, products, and sales. Although Swagger UI documentation is not available at the moment, the endpoints are described below.
- Endpoint:
GET /api/users - Description: Retrieves a list of all users.
- Endpoint:
GET /api/users/{id} - Description: Retrieves a specific user by their ID.
- Endpoint:
POST /api/users - Description: Creates a new user.
- Endpoint:
PUT /api/users/{id} - Description: Updates an existing user by their ID.
- Endpoint:
DELETE /api/users/{id} - Description: Deletes a specific user by their ID.
- Endpoint:
GET /api/products - Description: Retrieves a list of all products.
- Endpoint:
GET /api/products/{id} - Description: Retrieves a specific product by its ID.
- Endpoint:
POST /api/products - Description: Creates a new product.
- Endpoint:
PUT /api/products/{id} - Description: Updates an existing product by its ID.
- Endpoint:
DELETE /api/products/{id} - Description: Deletes a specific product by its ID.
- Endpoint:
GET /api/sales - Description: Retrieves a list of all sales.
- Endpoint:
GET /api/sales/{id} - Description: Retrieves a specific sale by its ID.
- Endpoint:
POST /api/sales - Description: Creates a new sale.
- Endpoint:
PUT /api/sales/{id} - Description: Updates an existing sale by its ID.
- Endpoint:
DELETE /api/sales/{id} - Description: Deletes a specific sale by its ID.
- Endpoint:
GET /api/sales/customer - Description: Lists sales filtered by part of the customer's name.
- Query Parameter:
name(Partial name of the customer)
- Endpoint:
GET /api/sales/employee - Description: Lists sales filtered by part of the employee's name.
- Query Parameter:
name(Partial name of the employee)
- Endpoint:
GET /api/products/top10 - Description: Lists the 10 most expensive products.
- Endpoint:
GET /api/customers/age-range - Description: Lists customers aged between 18 and 35 years.
- Endpoint:
GET /api/sales/top10 - Description: Lists the 10 sales with the highest total amounts.