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.

Search for responsible persons by a partial name string. This public endpoint is used by the department member lookup flow to let users find themselves before viewing their assigned locations and inventory items.

Request

Method: GET
Path: /api/responsables/buscar
Auth: None

Query Parameters

q
string
required
Partial name to search. Uses SQL LIKE %q% matching on the name column. A minimum of 1 character is recommended — an empty string returns an empty array [].

Response

200 — Success

Returns an array of responsible person objects matching the query. Returns an empty array [] when the query string is empty or no results are found.
id
integer
The unique identifier of the responsible person (id_responsible). Use this value as the responsable_id path parameter when calling /api/ubicaciones/{responsable_id}.
name
string
The full name of the responsible person.
[
  { "id": 1, "name": "Lopez Corrales Andres" },
  { "id": 4, "name": "Lopez Garcia Maria" }
]

Behavior

  • Matching is case-insensitive and uses SQL LIKE %query%, so the search term can appear anywhere in the name.
  • An empty q parameter returns [] immediately without querying the database.
  • Results are returned in the order they appear in the database — no explicit sort is applied.

Example

curl "http://localhost:5000/api/responsables/buscar?q=Lopez"
[
  { "id": 1, "name": "Lopez Corrales Andres" },
  { "id": 4, "name": "Lopez Garcia Maria" }
]

Build docs developers (and LLMs) love