This Sales Control System facilitates managing sales based on customer data. It is designed to simulate sales operations within a company. The system ensures transaction security and database access by requiring a user to obtain a token for performing system operations.
- Authentication: Log in using stored user credentials (email and password).
- The system encrypts the password to verify against the database.
- Once authenticated, a token is generated.
- Use the token as a Bearer Token in the header for making system API calls.
- API Endpoint:
POST https://localhost:7119/api/User/login
- Purpose: Fetch a JSON list of system customers, including their ID, name, and sales.
- API Endpoint:
GET https://localhost:7119/api/cliente
After fetching the customer list, you can perform the following operations:
- Modify existing customers.
- Delete customers.
- Add new customers.
- API Endpoint:
POST https://localhost:7119/api/cliente
For adding or editing a customer, use the following JSON structure in the request body: json { "Id": "CustomerId", "Name": "CustomerName" }
- API Endpoint:
PUT https://localhost:7119/api/cliente
{ "Id": "CustomerId", "Name": "CustomerName" }
- API Endpoint:
DELETE https://localhost:7119/api/cliente/{Id}
Replace {Id} with the specific ID of the customer to be deleted.
- API Endpoint:
Front-End en desarrollo