- Auth
- ForgotPassword
- Profile
- Family Members
- Address
- Languages
- Products
- Permissions
- Config
- Appointment Schedule
- Test Tags
- Test Parameters
- Category
- Device
- File
- Appointment
- Reports
- Staff
- Patient
- Notifications
Get Category
Developing
GET
/api/service/v1/categories
Request
Query Params
parent
string
optional
Example:
6790d7c19975d85c7b447c53
type
string
optional
Example:
service
Header Params
Accept
string
optional
Example:
application/json
Content-Type
string
optional
Example:
application/json
practice-code
string
optional
Example:
DEFAULT
Authorization
string
optional
Example:
{{token}}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://afyahealth.doctodoor.com:5600/api/service/v1/categories?parent=6790d7c19975d85c7b447c53&type=service' \
--header 'Accept: application/json' \
--header 'practice-code: DEFAULT' \
--header 'Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3YjJkZmZlNWJmMjdlMzk1NTUzMjE0MyIsImVtYWlsIjoiZGVlcC5tYXJzb25pYUBwbGVuYXJ0ZWNoLmNvbSIsInN1YiI6IjY3YjJkZmZlNWJmMjdlMzk1NTUzMjE0MyIsImlhdCI6MTc0MTc4MjA4NCwiZXhwIjoxNzQ5NTU4MDg0fQ.KAMsweSbJPDxpLijKdjgp3YEFauw8KYLLumCBpqQfAA' \
--header 'Content-Type: application/json'
Responses
🟢200Success
application/json
Body
error
boolean
required
status_code
integer
required
message
string
required
data
array [object {5}]
required
is_deleted
integer
optional
title
object
optional
created_at
string
optional
updated_at
string
optional
id
string
optional
Example
{
"error": false,
"status_code": 200,
"message": "",
"data": [
{
"parent": {
"parent": null,
"is_deleted": 0,
"title": {
"en": "this is title2",
"ar": "arabic title2"
},
"type": "service",
"color": "#FFAAEE",
"created_at": "2025-01-22T11:34:25.801Z",
"updated_at": "2025-01-22T11:34:25.801Z",
"id": "6790d7c19975d85c7b447c53"
},
"is_deleted": 0,
"title": {
"en": "this is title2",
"ar": "arabic title2"
},
"type": "service",
"color": "#FFAAEE",
"created_at": "2025-01-22T11:35:13.749Z",
"updated_at": "2025-01-22T11:35:13.749Z",
"id": "6790d7f19975d85c7b447c5a"
}
]
}