This page documents the REST endpoints that the Directorio UDC backend is planned to expose. When implemented, these endpoints will power the advisory-space locator and faculty directory features in the React frontend, enabling students to find available consultation rooms and locate the advisors assigned to them across the UDC campus. All endpoints will be prefixed underDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Minogar28/DIRECTORIO_UDC/llms.txt
Use this file to discover all available pages before exploring further.
http://localhost:3000 in development (see the Overview for base URL and CORS details).
The backend is in early development — no server implementation has been
committed to the repository yet. The endpoints below represent the intended
API design based on the application’s advisory-space locator requirements.
Treat all endpoint descriptions as planned behaviour until implementation is
complete.
Health Check
GET /health
Returns the current server status. Use this endpoint to verify that the backend is running and reachable before making data requests, or as a liveness probe in a deployment environment.
Advisory Spaces
These endpoints will manage the list of campus locations where advisors are available. Each space record will describe a physical room or area along with its current occupancy and availability state.GET /api/spaces
Returns an array of all advisory spaces. Supports optional query parameters to narrow results by building or current availability.
Query Parameters
Filter results to spaces located in the specified building name, e.g.
Bloque A.When
true, return only spaces that are currently available for use.Unique identifier for the advisory space.
Human-readable room or area name, e.g.
"Room 304-B".Building where the space is located, e.g.
"Bloque A".Floor number on which the space is situated.
Whether the space is currently available for student consultations.
Full name of the advisor currently assigned to the space, or
null if
unassigned.GET /api/spaces/:id
Returns a single advisory space identified by its unique ID. The response object will have the same shape as an individual item from the GET /api/spaces list.
Path Parameters
The unique identifier of the advisory space to retrieve.
- Returns
HTTP 200with the space object on success. - Returns
HTTP 404with{ "success": false, "error": "Resource not found" }if no space matches the given ID.
Faculty
These endpoints will expose the faculty directory, allowing students to browse advisors and find the one they need. Each faculty record will include contact information, office hours, and a link to their assigned advisory space when applicable.GET /api/faculty
Returns an array of all faculty members. Supports optional query parameters to filter by department or current availability.
Query Parameters
Filter results to faculty members belonging to the specified department, e.g.
Ingeniería de Sistemas.When
true, return only faculty members who are currently available for
student consultations.Unique identifier for the faculty member.
Full name of the faculty member.
Department to which the faculty member belongs.
University email address, e.g.
[email protected].List of weekly schedule slots during which the advisor is available, e.g.
["Mon 10:00-12:00", "Wed 14:00-16:00"].ID of the advisory space currently assigned to this faculty member, or
null
if no space is assigned. Use this value with GET /api/spaces/:id to fetch
full space details.GET /api/faculty/:id
Returns a single faculty member identified by their unique ID. The response object will have the same shape as an individual item from the GET /api/faculty list.
Path Parameters
The unique identifier of the faculty member to retrieve.
- Returns
HTTP 200with the faculty object on success. - Returns
HTTP 404with{ "success": false, "error": "Resource not found" }if no faculty member matches the given ID.