node -v
# v16.x
npm -v
# v8.x
npm install
npm start
-
Create a UI (screenshot below) by using the provided mock endpoints that consists of a list of "provider" elements that are populated by what you get from the
/api/appointments
endpoint (list of endpoints is below). Each "provider" element should have:-
The name and location of the "clinic" as a formatted address.
- The clinic data is populated with what you get from the
/api/clinics
endpoint. You will use theclinicId
property from the/api/appointments
endpoint to send to the/api/clinics
in a separate API call.
- The clinic data is populated with what you get from the
-
The name of the provider, with credentials next to it and phone number under it (see example screenshot)
-
A set of "appointment slots" buttons. These will also come from the
/api/appointments
endpoint, and you will need to group these slots by the provider/clinic they correspond to.-
Use the
startTime
property and format it as the screenshot shows for the text of the button. -
These do not need to have any action attached to them, but they should look and act like buttons!
-
-
-
In order to access these endpoints, you will need to request an access token from the
/api/login
endpoint (see below), and then pass it into the authentication header directly (no authentication scheme, just the token) when you make your requests.
This will give you an authentication token you can use in the other endpoints.
This will give you the list of appointment slots in the form of AppointmentsDto
, along with corresponding provider and clinic data.
You must provide the token that you get from /api/login
to request this API in the authentication header.
This will give you either a list of clinics or a specific clinic in the form of ClinicsDto
, depending on if you provide an ID.
You must provide the token that you get from /api/login
to request this API in the authentication header.
Use this as a guide for what your final product will look like. Note that the data in the example will not match the data you end up seeing, and that you should feel free to not be exact!
- Run the project locally.
- Implement a solution.
- Send me the result as zip file.