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/acceso resource manages real-time gym access control. It tracks which clients are currently inside the facility (en_gimnasio), deducts a membership day each time a client enters, and maintains a complete access log per member. Use the occupancy endpoint to display a live list of clients in the gym and the history endpoint to audit an individual member’s visits.
POST /api/acceso/entrada
Registers a client entry event. The backend sets the client’sen_gimnasio flag to true and deducts one day from their dias_restantes balance.
Request body
The unique ID of the client entering the gym.
Response fields
Full name of the client who entered.
The client’s updated membership day balance after deducting one day for this entry.
Example request
Example response
POST /api/acceso/salida
Registers a client exit event. The backend sets the client’sen_gimnasio flag to false.
Request body
The unique ID of the client exiting the gym.
Response fields
Full name of the client who exited.
Example request
Example response
GET /api/acceso/ocupacion
Returns an array of all clients who are currently inside the gym (en_gimnasio = true). Use this endpoint to display real-time occupancy on a dashboard or reception screen.
Response fields
Unique identifier of the client.
Full name of the client.
National ID or document number of the client.
Mobile phone number of the client.
Number of membership days the client still has available.
Example request
Example response
GET /api/acceso/historial/:cliente_id
Returns the full access log (entries and exits) for a specific client, ordered chronologically.Path parameters
The unique ID of the client whose access history you want to retrieve.
Response fields
Unique identifier for the access log entry.
ID of the client this log entry belongs to.
Type of access event. Typically
"entrada" (entry) or "salida" (exit).Timestamp of the access event in ISO 8601 format.