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 the details of a storage location and all inventory items assigned to it. This public endpoint is called after a user selects a location from the list returned by GET /api/ubicaciones/{responsable_id}, allowing them to view the complete inventory for that location before submitting a revision.

Request

Method: GET
Path: /api/items/{ubicacionId}
Auth: None

Path Parameters

ubicacionId
integer
required
The id_location of the target storage location. Obtain this value from the id_location field in the response of GET /api/ubicaciones/{responsable_id}.

Response

200 — Success

Returns the location details and a list of all inventory items assigned to that location.
ubicacion
object | null
Details of the requested storage location. null if no location exists for the given ubicacionId.
items
array
Array of inventory item objects assigned to the location. Returns an empty array [] if the location has no items.
{
  "ubicacion": {
    "id_location": 3,
    "number_location": 104,
    "description": "Laboratorio de Materiales"
  },
  "items": [
    { "id_item": 12, "account_name": "12345678901", "description": "Microscopio Olympus" },
    { "id_item": 13, "account_name": "98765432100", "description": "Balanza analítica" }
  ]
}
ubicacion is null when no location record exists for the supplied ubicacionId. The items array will also be empty in that case.

Example

curl "http://localhost:5000/api/items/3"

Build docs developers (and LLMs) love