The aulas service maintains the inventory of classrooms available for scheduling. It validates admin credentials by forwarding theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Luisanchez0/modulo_Horario/llms.txt
Use this file to discover all available pages before exploring further.
Authorization header to the usuarios service (GET /auth/me) before allowing write operations. Read endpoints are open to any caller.
Base URL: http://localhost:8003
GET /aulas
Returns all classrooms. No authentication required.Response
An array of classroom objects.Auto-assigned primary key.
Classroom identifier, e.g.
"Aula 201" or "Laboratorio A".Maximum seating capacity.
GET /aulas/
Returns a single classroom by ID. No authentication required.Path parameters
ID of the classroom to retrieve.
Response
- 200 — success
- 404 — not found
A single classroom object.
POST /aulas
Creates a new classroom. RequiresADMIN role.
Headers
Bearer <token> — must decode to rol: ADMIN.Request body
Classroom name or identifier.
Seating capacity.
Response
- 201 — created
- 403 — forbidden
PUT /aulas/
Replaces a classroom’s name and capacity. Both fields are required. RequiresADMIN role.
Path parameters
ID of the classroom to update.
Headers
Bearer <token> — must decode to rol: ADMIN.Request body
New classroom name.
New seating capacity.
Response
- 200 — updated
- 404 — not found
DELETE /aulas/
Deletes a classroom from the inventory. RequiresADMIN role.
Path parameters
ID of the classroom to delete.
Headers
Bearer <token> — must decode to rol: ADMIN.Response
- 200 — deleted
- 404 — not found
Health check
Returns
{ "status": "ok", "service": "aulas-service" }. No authentication required. Useful for liveness probes.