The public interface of Goods Inventory is designed for department members to look up their assigned storage locations and confirm inventory by submitting revision comments. No login is required.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/AndresLopezCorrales/Goods-Inventory/llms.txt
Use this file to discover all available pages before exploring further.
Step-by-step flow
Search for a responsible person
Route:
/The home page renders BuscadorResponsables. As the user types at least 2 characters, a debounced fetch (200ms delay) calls GET /api/responsables/buscar?q={query} and displays matching names. The user clicks a name to navigate to /ubicaciones/{id}.Browse locations
Route:
/ubicaciones/:responsableIdThe Ubicaciones component fetches GET /api/ubicaciones/{responsableId} and lists all locations assigned to that responsible person. Each row shows the location number, description, and the last revision date (or “Sin revisiones” in red if none). Clicking a location navigates to /items/{id_location}.View items
Route:
/items/:ubicacionIdThe Items component fetches GET /api/items/{ubicacionId} and displays a table with account numbers (account_name) and descriptions for all items at that location.Auth redirect behaviour
If a JWT token is found inlocalStorage, the public pages (/, /ubicaciones/:id, /items/:id) automatically redirect to /dashboard. This ensures admins land on the right interface after login and are never shown the public-facing search flow.
API calls made by the public interface
| Component | Method | Endpoint | Purpose |
|---|---|---|---|
BuscadorResponsables | GET | /api/responsables/buscar?q={q} | Autocomplete responsible search |
Ubicaciones | GET | /api/ubicaciones/{responsableId} | List locations for a responsible |
Items | GET | /api/items/{ubicacionId} | List items at a location |
Items | POST | /api/revisiones | Submit a revision comment |