This is an application to create a scheduling or appointment
Run the application in dev mode using this command
This endpoint used to get available slot on certain date
Field |
Type |
Required (Y/N) |
Description |
date |
string |
Y |
must be in yyyy-mm-dd format |
Example
Array of slot time that contains
Field |
Type |
Description |
date |
string |
date of slot |
time |
string |
time of slot |
available_slots |
string |
number of slots available at certain date and time |
Field |
Type |
Description |
message |
string |
message of the operation |
500 INTERNAL SERVER ERROR
Field |
Type |
Description |
message |
string |
message of the operation |
This endpoint used to get appointments
Array of appointments that contains
Field |
Type |
Description |
_id |
string |
id of appointment |
date |
string |
date of appointment |
time |
string |
time of appointment |
Field |
Type |
Description |
message |
string |
message of the operation |
500 INTERNAL SERVER ERROR
Field |
Type |
Description |
message |
string |
message of the operation |
This endpoint used to create a new appointment
Field |
Type |
Required (Y/N) |
Description |
date |
string |
Y |
date of appointment (must be in yyyy-mm-dd format) |
time |
string |
Y |
time of appointment (must be in HH:mm format) |
Example
{
"date": "2024-06-20",
"time": "10:00"
}
Field |
Type |
Description |
message |
string |
message of the operation |
appointment |
appointment interface |
contains appointment information (date, time) |
Field |
Type |
Description |
message |
string |
message of the operation |
500 INTERNAL SERVER ERROR
Field |
Type |
Description |
message |
string |
message of the operation |