API documentation for HeyDonto API
curl -i -X GET \
https://docs.heydonto.com/_mock/apis/heydonto/openapi/appointment-type \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
[ { "title": "1 Filling - Returning", "isEnabled": true, "id": 123, "createdAt": "2021-08-01T00:00:00.000Z", "updatedAt": "2021-08-01T00:00:00.000Z" } ]
curl -i -X POST \
https://docs.heydonto.com/_mock/apis/heydonto/openapi/appointment-type \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"title": "1 Filling - Returning",
"isEnabled": true
}'
{ "title": "1 Filling - Returning", "isEnabled": true }
curl -i -X PUT \
'https://docs.heydonto.com/_mock/apis/heydonto/openapi/appointment-type/{appointmentTypeId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"title": "1 Filling - Returning",
"isEnabled": true,
"id": 123
}'
{ "title": "1 Filling - Returning", "isEnabled": true, "id": 123 }
curl -i -X DELETE \
'https://docs.heydonto.com/_mock/apis/heydonto/openapi/appointment-type/{appointmentTypeId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
{ "message": "Unauthorized", "statusCode": 401 }