Introduction
The Automatización Backend API provides comprehensive endpoints for managing classroom scheduling, room availability, reservations, and academic data. This RESTful API enables automated classroom assignment based on multiple constraints including capacity, compatibility, and availability.Base URL
Authentication
Currently, the API does not require authentication. All endpoints are publicly accessible.Authentication will be added in future versions. For production deployments, implement proper access control.
Response Format
All API responses follow a consistent JSON structure:Success Response
Error Response
HTTP Status Codes
The API uses standard HTTP status codes:| Status Code | Description |
|---|---|
| 200 | Success - Request completed successfully |
| 400 | Bad Request - Invalid parameters or validation error |
| 404 | Not Found - Resource not found |
| 500 | Internal Server Error - Server-side error |
Common Request Patterns
Time Format
All time fields use 24-hour formatHH:MM:
Date Format
Dates use the formatDD/MM/YYYY:
Day of Week
Day names are in Spanish with proper capitalization:Lunes, Martes, Miércoles, Jueves, Viernes, Sábado, Domingo
Core Concepts
Aulas (Classrooms)
Classrooms have specific attributes:- tipo: Type of classroom (
teorica,laboratorio,virtual) - capacidad: Maximum student capacity
- recursos: Available resources (projector, computers, etc.)
- sede: Campus location
Programaciones (Schedules)
Schedules represent classroom reservations with states:- reservado: Reserved but not yet confirmed
- ocupado: Confirmed and in use
- cancelado: Cancelled reservation
Restricciones (Constraints)
The system enforces three main constraints:- Capacity: Classroom must accommodate all students
- Compatibility: Classroom type must match course requirements
- Availability: Classroom must not be occupied during requested time
Quick Start
Test the API with a simple request to the root endpoint:API Endpoints
Room Availability
Check available classrooms based on constraints
Reservations
Manage classroom reservations and schedules
Schedule Management
Create and manage complete semester schedules
Catalog Data
Access reference data and system health
Rate Limiting
Currently, there are no rate limits. This may change in future versions.Error Handling
When an error occurs, the API returns a descriptive message:- Invalid time format
- Classroom not found
- Schedule conflicts
- Validation failures
SDK and Client Libraries
Currently, no official SDKs are available. You can interact with the API using:- cURL
- Python
requestslibrary - JavaScript
fetchoraxios - Any HTTP client library