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.

This endpoint returns a responsible person’s name together with the full list of locations assigned to them. It is used by the admin dashboard to populate the location list when drilling into a specific responsible person.

Request

  • Method: GET
  • Path: /api/admin/responsables/{responsable_id}/ubicaciones
  • Auth: Bearer JWT

Path Parameters

responsable_id
integer
required
Primary key of the responsible person whose locations should be returned.

Request Example

curl "http://localhost:5000/api/admin/responsables/1/ubicaciones" \
  -H "Authorization: Bearer <token>"

Response

200 — Success

{
  "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"
      }
    }
  ]
}
responsable
string
Full name of the responsible person identified by responsable_id.
ubicaciones
array
List of location objects assigned to this responsible person. Returns an empty array [] if the person has no assigned locations.

404 — Responsible Person Not Found

Returned when no record matching responsable_id exists in the responsible table.
{ "error": "Responsable no encontrado" }

Build docs developers (and LLMs) love