The Doctors resource exposes two read-only endpoints that power the core browsing experience in AMS.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Jay-byte389/AMS/llms.txt
Use this file to discover all available pages before exploring further.
GET /Doctors returns the full list of doctor profiles rendered on the Home screen and the Doctors list screen. GET /Doctors/:id returns a single profile and is used when deep-linking directly to a doctor’s detail view. Both endpoints are served by the shared Axios client configured in src/services/api.js.
GET /Doctors
Method: GET — Path:
/DoctorsService Function
Defined insrc/services/doctorServices.js:
src/services/doctorServices.js
Redux Thunk
fetchDoctors wraps fetchDoctorsAPI and dispatches the result to the doctors Redux slice. Defined in src/redux/thunk/doctorThunk.js:
src/redux/thunk/doctorThunk.js
Request Parameters
No query parameters or path parameters are required. The endpoint returns all doctor records.Response
Returns a JSON array of doctor objects.Doctor Object Schema
Unique identifier assigned by MockAPI. Used as the foreign key in appointment records (
doctorId).Doctor’s full name as displayed in the app (e.g.
"Dr. Sarah Mitchell").Professional qualification abbreviation displayed alongside the name (e.g.
"MBBS", "MD").Medical speciality or department (e.g.
"Cardiology", "General Physician").Fully-qualified URL to the doctor’s profile image. Rendered via React Native’s
<Image source={{ uri: doctor.avatar }} />.Aggregate star rating shown on doctor cards (e.g.
4.8).Total number of patient comments associated with the doctor profile.
Total number of written reviews. Displayed in the stats row on the
DoctorInfo screen.Years of professional experience. Shown in the experience badge on the doctor detail card.
Primary area of clinical focus displayed in the focus chip on the
DoctorInfo screen (e.g. "Pediatric Heart Conditions").Biographical paragraph rendered under the Profile heading on the doctor detail view.
Career history narrative shown under the Career Path heading on the doctor detail view.
Notable achievements or career highlights shown under the Highlights heading on the doctor detail view.
Example Response
Usage in a Component
The Home screen dispatchesfetchDoctors on mount inside a useEffect:
src/screens/HomeScreen.jsx
GET /Doctors/:id
Method: GET — Path:
/Doctors/:idid is available rather than the full object.
Service Function
Defined insrc/services/doctorServices.js:
src/services/doctorServices.js
Path Parameter
The unique doctor identifier returned in the
id field of a GET /Doctors response. Must be passed as a URL path segment (e.g. /Doctors/3).