BodegaX exposes a Spring Boot REST API that the Angular 17 frontend communicates with exclusively. All warehouse operations — from user authentication to recording beer crate sales — are driven through this API. Every request and response body uses JSON, and the server runs locally atDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Edwin950821/BodegaX/llms.txt
Use this file to discover all available pages before exploring further.
http://localhost:8080 during development. There are no versioned URL prefixes; resources are addressed directly under their group paths.
Base URL
Request Format
Set theContent-Type header to application/json on every request that includes a body (POST, PUT, DELETE with body). GET requests require no headers beyond standard defaults.
Authentication Model
BodegaX uses session-based authentication rather than bearer tokens. ThePOST /admin/login endpoint returns a full user object. The Angular frontend stores this object in the browser’s sessionStorage under the key bodegax:
uuid as uuid_admin or uuid_cliente inside the request body. There is no Authorization header; the API itself is not stateful — identity is carried in the body fields.
Resource Groups
The API is organized into four resource groups:| Group | Base Path | Description |
|---|---|---|
| Admin / Users | /admin/* | Login, registration, user management |
| Products | /productos/* | Beer product catalog and stock levels |
| Sales | /ventas/* | Sale transaction records |
| Product-Sale Line Items | /producto-ventas/* | Per-product breakdown within a sale |
All Endpoints
| Method | Path | Description |
|---|---|---|
POST | /admin/login | Authenticate a user and return their session object |
POST | /admin/create | Register a new user account |
PUT | /admin/edit | Update an existing user’s information |
DELETE | /admin/delete | Delete a user by passing their object as the body |
GET | /admin/all | Retrieve all registered users |
GET | /productos/all | Retrieve all beer products and their current stock |
PUT | /productos/edit | Update a product’s name, price, or stock count |
POST | /ventas/create | Create a new sale transaction record |
GET | /ventas/all | Retrieve all sale transaction records |
POST | /producto-ventas/create | Add a product line item to an existing sale |
GET | /producto-ventas/all | Retrieve all product-level sale line items |
API Reference Pages
Authentication
Login, registration, and full user account management via the
/admin/* endpoints.Products
Browse the beer catalog and update stock levels via the
/productos/* endpoints.Sales
Record and retrieve sale transactions and line items via
/ventas/* and /producto-ventas/*.Orders
Understand how client crate requests map to the sales data model and full order lifecycle.