Endpoints
| Method | Path | Auth Required |
|---|---|---|
| GET | /api/attendances | None (public) |
| GET | /api/attendances/{id} | None (public) |
| POST | /api/attendances | USER, ADMIN, or ORGANIZER |
| PUT | /api/attendances/{id} | USER, ADMIN, or ORGANIZER |
| DELETE | /api/attendances/{id} | USER, ADMIN, or ORGANIZER |
GET /api/attendances
Returns a paginated list of all attendances. Supports optional search filtering. Auth: None required.Query Parameters
Optional search string to filter attendances. Defaults to an empty string (returns all).
Page number for pagination. Defaults to
1.Response Fields
Indicates whether the request was successful.
HTTP status code of the response.
Human-readable message describing the result.
List of attendance objects.
Example
GET /api/attendances/
Returns a single attendance record by its UUID. Auth: None required.Path Parameters
The unique identifier of the attendance record.
Response Fields
The attendance object.
Example
POST /api/attendances
Registers a new attendance for a user at an event. Auth: Bearer token required. Roles: USER, ADMIN, or ORGANIZER.Request Body
The ID of the user registering attendance. Typically resolved from the authenticated token.
The ID of the event to attend.
The attendance state. Must be one of:
CONFIRMADO, PENDIENTE, CANCELADO.Response Fields
The newly created attendance object.
Example
PUT /api/attendances/
Updates the state of an existing attendance record. Auth: Bearer token required. Roles: USER, ADMIN, or ORGANIZER.Path Parameters
The unique identifier of the attendance record to update.
Request Body
The new attendance state. Must be one of:
CONFIRMADO, PENDIENTE, CANCELADO.Response Fields
The updated attendance object.
Example
DELETE /api/attendances/
Deletes an attendance record. Auth: Bearer token required. Roles: USER, ADMIN, or ORGANIZER.Path Parameters
The unique identifier of the attendance record to delete.
Response Fields
The deleted attendance object.