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.

Retrieve all storage locations assigned to a given responsible person, along with the most recent revision record for each location. This public endpoint is typically called after the user selects themselves from the results of GET /api/responsables/buscar.

Request

Method: GET
Path: /api/ubicaciones/{responsable_id}
Auth: None

Path Parameters

responsable_id
integer
required
The id_responsible of the responsible person whose locations should be retrieved. Obtain this value from the id field returned by GET /api/responsables/buscar.

Response

200 — Success

Returns an object containing the responsible person’s name and a list of their assigned locations. Each location includes its most recent revision record if one exists.
responsable
string
The full name of the responsible person.
ubicaciones
array
Array of location objects assigned to the responsible person.
{
  "responsable": "Lopez Corrales Andres",
  "ubicaciones": [
    {
      "id_location": 3,
      "id_responsible": 1,
      "number_location": 104,
      "description": "Laboratorio de Materiales",
      "last_revision_date": "2024-11-15T10:30:00",
      "last_revision": {
        "id": 7,
        "id_location": 3,
        "date_time_revision": "2024-11-15T10:30:00",
        "comment": "Todo en orden"
      }
    }
  ]
}
last_revision_date and last_revision are both null when the location has not yet had any revision submitted via POST /api/revisiones.

Example

curl "http://localhost:5000/api/ubicaciones/1"

Build docs developers (and LLMs) love