GET
/
dr
/
v1
/
business
/
entities
curl --request GET \
  --url https://api.eka.care/dr/v1/business/entities \
  --header 'auth: <auth>'
{
  "status_code": 200,
  "success": true,
  "data": {
    "clinics": [
      {
        "clinic_id": "{{clinic_id1}}",
        "name": "Skin clinic derma 1",
        "doctors": [
          "12345678901234",
          "11987654321765"
        ]
      },
      {
        "clinic_id": "{{clinic_id2}}",
        "name": "family clinic 2",
        "doctors": [
          "87198101903i101"
        ]
      }
    ],
    "doctors": [
      {
        "name": "Dr. GP Physician",
        "doctor_id": "12345678901234",
        "pic": "https://abc.eka.care/doctor-avatar/123456789"
      },
      {
        "name": "Dr. ABC XYZ",
        "doctor_id": "11987654321765",
        "pic": "https://abc.eka.care/doctor-avatar/123456789"
      },
      {
        "name": "Dr. Ortho Doctor",
        "doctor_id": "87198101903i101",
        "pic": "https://abc.eka.care/doctor-avatar/123456789"
      }
    ],
    "business": {
      "business_id": "{{business_id}}",
      "name": "{{business_name}}"
    }
  }
}

Headers

auth
string
required

The auth token of the business. It is used to authenticate the client. This should be fetched from auth api.

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJiX2lkIjoiMTIzNDU2IiwiY2xpZW50X2lkIjoiNzg5MCIsImV4dHJhX2ZpZWxkIjoiZXh0cmFfZmllbGRfZGF0YSJ9.q9KzBI6f4l3OyM_EkB5Quq0l9EEMFh5JS-fx3F_PHUM"

Response

200
application/json
OK

The response is of type string.

Example:
{
  "status_code": 200,
  "success": true,
  "data": {
    "clinics": [
      {
        "clinic_id": "{{clinic_id1}}",
        "name": "Skin clinic derma 1",
        "doctors": ["12345678901234", "11987654321765"]
      },
      {
        "clinic_id": "{{clinic_id2}}",
        "name": "family clinic 2",
        "doctors": ["87198101903i101"]
      }
    ],
    "doctors": [
      {
        "name": "Dr. GP Physician",
        "doctor_id": "12345678901234",
        "pic": "https://abc.eka.care/doctor-avatar/123456789"
      },
      {
        "name": "Dr. ABC XYZ",
        "doctor_id": "11987654321765",
        "pic": "https://abc.eka.care/doctor-avatar/123456789"
      },
      {
        "name": "Dr. Ortho Doctor",
        "doctor_id": "87198101903i101",
        "pic": "https://abc.eka.care/doctor-avatar/123456789"
      }
    ],
    "business": {
      "business_id": "{{business_id}}",
      "name": "{{business_name}}"
    }
  }
}