Endpoint
Authentication
Description
Retrieves all doctors in the system, including both active and inactive ones. This is the admin view that shows complete information about all doctors with their associated person and specialty details.Response
Returns an array of doctor objects with nested person and specialty information.Response Fields
Unique identifier for the doctor
Foreign key reference to the associated person
Foreign key reference to the doctor’s specialty
Doctor’s professional email address
Professional license or medical registration number
Indicates if the doctor is currently active in the system
Associated person information
Associated specialty information
Example Request
Example Response
Error Responses
401 Unauthorized
Missing or invalid authentication token
403 Forbidden
User does not have admin role
500 Internal Server Error
Server error while retrieving doctors
Notes
- Unlike the public doctors endpoint (
/api/medicos/public), this admin endpoint returns both active and inactive doctors - Results are ordered by ID in ascending order
- The response includes full person and specialty details through relations