Introduction
The Medical Appointment Management API is a preliminary prototype RESTful web service built with ASP.NET Core. This project demonstrates a healthcare scheduling system architecture with a fully functional Medical Specialties resource.Base URL
All API endpoints are relative to the base URL:Available Resources
✅ Fully Implemented
- Especialidades (Specialties) - Fully functional CRUD operations for managing medical specialties
🔄 Planned (Not Yet Implemented)
The following resources are architecturally defined but have empty controllers with no functional endpoints:- Pacientes (Patients) - Patient data models exist, but endpoints are not implemented
- Médicos (Doctors) - Doctor data models exist, but endpoints are not implemented
- Citas (Appointments) - Appointment data models exist, but endpoints are not implemented
Content Type
All requests and responses use JSON format:OpenAPI Documentation
Interactive API documentation is available through Scalar UI at:This project uses Scalar instead of Swagger UI for a modern, feature-rich documentation experience. Scalar provides better code generation, improved UX, and enhanced testing capabilities.
Response Format
All successful API responses return JSON data with appropriate HTTP status codes:200 OK- Successful GET, PUT requests201 Created- Successful POST requests204 No Content- Successful DELETE requests400 Bad Request- Invalid request data or validation errors404 Not Found- Resource not found409 Conflict- Resource conflict (e.g., duplicate records)
Error Handling
When an error occurs, the API returns an appropriate HTTP status code along with an error message: 404 Not Found Example:Data Validation
The API enforces strict validation rules on all input data:- Names: Must contain only letters and spaces (including Spanish characters)
- DNI: Must be exactly 8 digits
- Email: Must be a valid email address format
- Phone: Must be a valid phone number format
- Dates: Must be valid date/datetime values
- Required Fields: All required fields must be provided
Next Steps
- Review Authentication for security information
- Explore the fully functional Especialidades endpoints
- Check DTOs for data structure documentation
- See Data Models to understand all entity definitions
- Read Development Guide to learn how to implement the remaining resources