API documentation for HeyDonto API
curl -i -X GET \
https://docs.heydonto.com/_mock/apis/heydonto/openapi/code \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
[ { "title": "Medical Code Title", "code": "M1234", "category": "Dental", "categoryCode": "D4567", "isEnabled": true } ]
curl -i -X POST \
https://docs.heydonto.com/_mock/apis/heydonto/openapi/code \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"title": "Medical Code Title",
"code": "M1234",
"category": "Dental",
"categoryCode": "D4567",
"isEnabled": true
}'
{ "title": "Medical Code Title", "code": "M1234", "category": "Dental", "categoryCode": "D4567", "isEnabled": true }
curl -i -X PUT \
'https://docs.heydonto.com/_mock/apis/heydonto/openapi/code/{codeId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"title": "Medical Code Title",
"code": "M1234",
"category": "Dental",
"categoryCode": "D4567",
"isEnabled": true,
"id": 123
}'
{ "title": "Medical Code Title", "code": "M1234", "category": "Dental", "categoryCode": "D4567", "isEnabled": true, "id": 123 }
curl -i -X DELETE \
'https://docs.heydonto.com/_mock/apis/heydonto/openapi/code/{codeId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
{ "message": "Unauthorized", "statusCode": 401 }