Skip to main content

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.

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.

Step-by-step flow

1

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}.
2

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}.
3

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.
4

Submit a revision

Route: /items/:ubicacionId (same page)At the bottom of the items page, a textarea lets the user write a comment. Clicking “Enviar revisión” POSTs to POST /api/revisiones with { id_location, comment }. On success, a confirmation message is displayed.

Auth redirect behaviour

If a JWT token is found in localStorage, 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

ComponentMethodEndpointPurpose
BuscadorResponsablesGET/api/responsables/buscar?q={q}Autocomplete responsible search
UbicacionesGET/api/ubicaciones/{responsableId}List locations for a responsible
ItemsGET/api/items/{ubicacionId}List items at a location
ItemsPOST/api/revisionesSubmit a revision comment

Build docs developers (and LLMs) love