TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Hansel-Pan/sistema-de-informacion-web-para-un-gimnasio/llms.txt
Use this file to discover all available pages before exploring further.
/api/clientes resource manages gym member records. Each client stores personal details, their enrollment date, gender, and a running count of membership days remaining (dias_restantes). The en_gimnasio flag is toggled automatically by the Access API when a member enters or exits the gym.
GET /api/clientes
Returns an array of all registered clients.Response fields
Unique identifier for the client, assigned by the database.
Full name of the client.
National ID or document number of the client.
Mobile phone number of the client.
Enrollment date in ISO 8601 format (e.g.
2024-01-15).Gender of the client. One of
Masculino, Femenino, or Otro.Number of membership days the client still has available.
true if the client is currently inside the gym; false otherwise.Example request
Example response
GET /api/clientes/:id
Returns a single client by their unique ID.Path parameters
The unique identifier of the client to retrieve.
Response fields
Same fields as the array items returned byGET /api/clientes above.
Example request
Example response
POST /api/clientes
Creates a new client record.Request body
Full name of the client (e.g.
"Juan Pérez").National ID or document number (e.g.
"1234567890").Mobile phone number (e.g.
"3001234567").Enrollment date in ISO 8601 format (
YYYY-MM-DD).Gender of the client. Must be one of
Masculino, Femenino, or Otro.Response fields
The created client object, including the newly assignedid.
Example request
Example response
PUT /api/clientes/:id
Updates an existing client record. All body fields are replaced with the supplied values.Path parameters
The unique identifier of the client to update.
Request body
Updated full name of the client.
Updated national ID or document number.
Updated mobile phone number.
Updated enrollment date in ISO 8601 format (
YYYY-MM-DD).Updated gender. Must be one of
Masculino, Femenino, or Otro.Response fields
The full updated client object reflecting the new values.Example request
Example response
DELETE /api/clientes/:id
Permanently removes a client record from the system.Path parameters
The unique identifier of the client to delete.
Response
Returns HTTP200 OK on success. Returns an error object (e.g. { "error": "Cliente no encontrado" }) with a non-2xx status code if the client does not exist.