NAV
bash javascript

Info

Welcome to the generated API reference. Get Postman Collection

Call

Get calls

Example request:

curl -X GET \
    -G "http://localhost/api/call/listing" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/call/listing"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/call/listing

Create a call


Requires authentication

Example request:

curl -X POST \
    "http://localhost/api/call/store" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}" \
    -d '{"patient_id":3,"caller_id":7,"call_type":"facere","first_name":"reprehenderit","last_name":"est","identification":5,"identification_id":1,"presumptive_diagnosis":"nobis","latlong":"inventore","specialty_id":15,"address":"excepturi","building_number":1,"floor":19,"door_number":16,"postal_code":5,"province_id":15,"city_id":1111}'
const url = new URL(
    "http://localhost/api/call/store"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

let body = {
    "patient_id": 3,
    "caller_id": 7,
    "call_type": "facere",
    "first_name": "reprehenderit",
    "last_name": "est",
    "identification": 5,
    "identification_id": 1,
    "presumptive_diagnosis": "nobis",
    "latlong": "inventore",
    "specialty_id": 15,
    "address": "excepturi",
    "building_number": 1,
    "floor": 19,
    "door_number": 16,
    "postal_code": 5,
    "province_id": 15,
    "city_id": 1111
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (401):

{
    "error": "Token is Invalid"
}

HTTP Request

POST api/call/store

Body Parameters

Parameter Type Status Description
patient_id integer required Description.
caller_id integer optional Description.
call_type string optional Description example
first_name string optional Description example
last_name string optional Description example
identification integer optional Description example
identification_id integer optional Description.
presumptive_diagnosis string optional Description example
latlong string optional Description example
specialty_id integer optional Description example
address string optional Description example
building_number integer optional Description example
floor integer optional Description example
door_number integer optional Description example
postal_code integer optional Description example
province_id integer required Description example
city_id integer required Description.

general

Authenticate the request for channel access.

Example request:

curl -X GET \
    -G "http://localhost/broadcasting/auth" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/broadcasting/auth"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET broadcasting/auth

POST broadcasting/auth

Get video call statistics

Example request:

curl -X GET \
    -G "http://localhost/api/admin/videocall" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/admin/videocall"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/admin/videocall

Get statistics of professionals

Example request:

curl -X GET \
    -G "http://localhost/api/admin/professionals" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/admin/professionals"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/admin/professionals

Get detail statistics of professionals

Obtain the information of sessions and calls in plain text, ready to download in file format.

Example request:

curl -X GET \
    -G "http://localhost/api/admin/professionals/details" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/admin/professionals/details"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/admin/professionals/details

Get statistics of professional sessions

Example request:

curl -X GET \
    -G "http://localhost/api/admin/professionals/sessions" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/admin/professionals/sessions"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/admin/professionals/sessions

Get symptoms percentage

Example request:

curl -X GET \
    -G "http://localhost/api/admin/symptoms" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/admin/symptoms"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/admin/symptoms

Get recommendations percentage

Example request:

curl -X GET \
    -G "http://localhost/api/admin/recommendations" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/admin/recommendations"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/admin/recommendations

Get diagnoses percentage

Example request:

curl -X GET \
    -G "http://localhost/api/admin/diagnoses" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/admin/diagnoses"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/admin/diagnoses

Get specialities percentage

Example request:

curl -X GET \
    -G "http://localhost/api/admin/specialties" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/admin/specialties"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/admin/specialties

Get the stats for admin dashboard.

Example request:

curl -X GET \
    -G "http://localhost/api/admin/administration" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/admin/administration"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/admin/administration

Get patient statistics

Example request:

curl -X GET \
    -G "http://localhost/api/admin/patients" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/admin/patients"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/admin/patients

Import doctors from xls file

Example request:

curl -X POST \
    "http://localhost/api/admin/import" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/admin/import"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

POST api/admin/import

Get a list of agendas

Show all the agendas ordered by id

Example request:

curl -X GET \
    -G "http://localhost/api/agenda/listing" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/agenda/listing"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/agenda/listing

Get a agenda by id

Return a agenda information by id

Example request:

curl -X GET \
    -G "http://localhost/api/agenda/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/agenda/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/agenda/{agenda}

Update agenda object

Used for edit fields of agenda by id

Example request:

curl -X PUT \
    "http://localhost/api/agenda/update/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/agenda/update/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

PUT api/agenda/update/{agenda}

Store agenda

Example request:

curl -X POST \
    "http://localhost/api/agenda/store" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/agenda/store"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

POST api/agenda/store

Delete agenda

Soft delete method

Example request:

curl -X DELETE \
    "http://localhost/api/agenda/delete/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/agenda/delete/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

DELETE api/agenda/delete/{agenda}

Get agendas by doctor_id

Return a agenda information by id

Example request:

curl -X GET \
    -G "http://localhost/api/agenda/doctor/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/agenda/doctor/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/agenda/doctor/{doctor}

Get unavailables times by doctor_id

Return agendas_unavailable_times by doctor_id

Example request:

curl -X GET \
    -G "http://localhost/api/agenda/doctor/unavailable/listing" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/agenda/doctor/unavailable/listing"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/agenda/doctor/unavailable/listing

Get availables times by doctor_id

Return agendas_available_times by doctor_id

Example request:

curl -X GET \
    -G "http://localhost/api/agenda/doctor/available/listing" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/agenda/doctor/available/listing"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/agenda/doctor/available/listing

Store available times by Doctor

Example request:

curl -X POST \
    "http://localhost/api/agenda/available/store" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/agenda/available/store"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

POST api/agenda/available/store

Update agenda available object

Used for edit fields of agendas_available_times by id

Example request:

curl -X PUT \
    "http://localhost/api/agenda/available/update/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/agenda/available/update/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

PUT api/agenda/available/update/{available}

Delete AgendaAvailableTime

Soft delete method to delete AgendaAvailableTimes

Example request:

curl -X DELETE \
    "http://localhost/api/agenda/available/delete/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/agenda/available/delete/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

DELETE api/agenda/available/delete/{available}

Store unavailable times by Doctor

Example request:

curl -X POST \
    "http://localhost/api/agenda/unavailable/store" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/agenda/unavailable/store"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

POST api/agenda/unavailable/store

Update agenda unavailable object

Used for edit fields of agendas_unavailable_times by id

Example request:

curl -X PUT \
    "http://localhost/api/agenda/unavailable/update/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/agenda/unavailable/update/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

PUT api/agenda/unavailable/update/{unavailable}

Delete AgendaUnavailableTime

Soft delete method to delete AgendaUnavailableTimes

Example request:

curl -X DELETE \
    "http://localhost/api/agenda/unavailable/delete/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/agenda/unavailable/delete/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

DELETE api/agenda/unavailable/delete/{unavailable}

Create a new alarm.

Example request:

curl -X POST \
    "http://localhost/api/alarm/store" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/alarm/store"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "call_id": [
        "FIELD_REQUIRED"
    ],
    "status": [
        "FIELD_REQUIRED"
    ]
}

HTTP Request

POST api/alarm/store

Search for available slots in agenda.

Example request:

curl -X GET \
    -G "http://localhost/api/appointment/available" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/appointment/available"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/appointment/available

Return an array with days availables

Example request:

curl -X GET \
    -G "http://localhost/api/appointment/days/available/1/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/appointment/days/available/1/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/appointment/days/available/{month}/{year}

Listing of a patient users appointment.

Example request:

curl -X GET \
    -G "http://localhost/api/appointment/listing/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/appointment/listing/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/appointment/listing/{patient}

Listing of a doctor users appointment.

Example request:

curl -X GET \
    -G "http://localhost/api/appointment/doctor/listing/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/appointment/doctor/listing/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/appointment/doctor/listing/{doctor}

Listing of a caller users appointment.

Example request:

curl -X GET \
    -G "http://localhost/api/appointment/caller/listing/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/appointment/caller/listing/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/appointment/caller/listing/{doctor}

Search doctors and specialties.

Example request:

curl -X GET \
    -G "http://localhost/api/appointment/search" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/appointment/search"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/appointment/search

Update an existent appointment

Example request:

curl -X PUT \
    "http://localhost/api/appointment/update/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/appointment/update/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

PUT api/appointment/update/{appointment}

Delete an existent appointment

Example request:

curl -X PUT \
    "http://localhost/api/appointment/cancel/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/appointment/cancel/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

PUT api/appointment/cancel/{appointment}

Store an appointment

Example request:

curl -X POST \
    "http://localhost/api/appointment/store" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/appointment/store"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

POST api/appointment/store

Delete an existent appointment

Example request:

curl -X DELETE \
    "http://localhost/api/appointment/delete/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/appointment/delete/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

DELETE api/appointment/delete/{appointment}

List of appointment's types

Return a list of appointment_type objects in array format

Example request:

curl -X GET \
    -G "http://localhost/api/appointment/type/all" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/appointment/type/all"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/appointment/type/all

Get an appointment's type

Return an object of appointment_type

Example request:

curl -X GET \
    -G "http://localhost/api/appointment/type/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/appointment/type/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/appointment/type/{appointmentType}

Update appointment type

Example request:

curl -X PUT \
    "http://localhost/api/appointment/type/update/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/appointment/type/update/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

PUT api/appointment/type/update/{appointmentType}

Create appointment type

Example request:

curl -X POST \
    "http://localhost/api/appointment/type/store" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/appointment/type/store"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

POST api/appointment/type/store

Delete appointment type

Example request:

curl -X DELETE \
    "http://localhost/api/appointment/type/delete/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/appointment/type/delete/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

DELETE api/appointment/type/delete/{appointmentType}

Get archives.

Example request:

curl -X GET \
    -G "http://localhost/api/archive/listing" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/archive/listing"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": {
        "current_page": 1,
        "data": [],
        "first_page_url": "\/?page=1",
        "from": null,
        "last_page": 1,
        "last_page_url": "\/?page=1",
        "next_page_url": null,
        "path": "\/",
        "per_page": 1,
        "prev_page_url": null,
        "to": null,
        "total": 1
    }
}

HTTP Request

GET api/archive/listing

JWT login.

Example request:

curl -X POST \
    "http://localhost/api/auth/login" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/auth/login"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "email": [
        "The email field is required."
    ],
    "password": [
        "The password field is required."
    ]
}

HTTP Request

POST api/auth/login

JWT create permanent token.

Example request:

curl -X POST \
    "http://localhost/api/auth/create-permanent-token" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/auth/create-permanent-token"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "email": [
        "FIELD_REQUIRED"
    ]
}

HTTP Request

POST api/auth/create-permanent-token

Get all messages from a call.

Example request:

curl -X GET \
    -G "http://localhost/api/call/messages/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/call/messages/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": [],
    "message": "The message was returned successfully."
}

HTTP Request

GET api/call/messages/{call}

Generate Opentok token.

Example request:

curl -X GET \
    -G "http://localhost/api/call/token" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/call/token"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/call/token

Get duration of a call.

Example request:

curl -X GET \
    -G "http://localhost/api/call/duration" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/call/duration"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/call/duration

Get the patient symptoms.

Example request:

curl -X GET \
    -G "http://localhost/api/call/patient-symptoms/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/call/patient-symptoms/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/call/patient-symptoms/{call}

Diagnostic recap

Example request:

curl -X GET \
    -G "http://localhost/api/call/recap/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/call/recap/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/call/recap/{call}

Diagnostic recap

Example request:

curl -X GET \
    -G "http://localhost/api/call/recap/1/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/call/recap/1/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/call/recap/{doctor}/{callDoctor_id}

Get recording archives for a call.

Example request:

curl -X GET \
    -G "http://localhost/api/call/record-archives/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/call/record-archives/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/call/record-archives/{call}

Start recording a call.

Example request:

curl -X GET \
    -G "http://localhost/api/call/start-recording/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/call/start-recording/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/call/start-recording/{call}

Stop recording a call.

Example request:

curl -X GET \
    -G "http://localhost/api/call/stop-recording/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/call/stop-recording/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/call/stop-recording/{archive_id}

Accept a call.

Example request:

curl -X PUT \
    "http://localhost/api/call/accept/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/call/accept/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

PUT api/call/accept/{call}

Derive call to another doctor

Create a new call_doctors for another doctor with the same information

Example request:

curl -X PUT \
    "http://localhost/api/call/derive/1/to/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/call/derive/1/to/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

PUT api/call/derive/{call}/to/{doctor}

Leave call

Abandon the call being a doctor caller or a patient

Example request:

curl -X PUT \
    "http://localhost/api/call/1/leave" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/call/1/leave"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": {
        "id": 1,
        "doctor_id": 7,
        "patient_id": 3,
        "appointment_id": 32,
        "diagnostic_id": 1,
        "duration": 0,
        "status": "Accepted",
        "session": "",
        "created_at": "2020-03-04 09:17:05",
        "updated_at": "2020-03-04 09:29:20",
        "doctors_latitude": 0,
        "doctors_longitude": 0,
        "patients_latitude": 0,
        "patients_longitude": 0,
        "caller_id": null,
        "disconnection": 0,
        "address": null,
        "building_number": null,
        "floor": null,
        "door_number": null,
        "postal_code": null,
        "province_id": null,
        "city_id": null,
        "type": "Regular"
    },
    "message": "The patient was leave the call."
}

HTTP Request

PUT api/call/{call}/leave

Update a call.

Example request:

curl -X PUT \
    "http://localhost/api/call/disconnection/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/call/disconnection/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

PUT api/call/disconnection/{id}

Update a call.

Example request:

curl -X PUT \
    "http://localhost/api/call/update/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/call/update/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

PUT api/call/update/{id}

Call Change Status Event

Example request:

curl -X PUT \
    "http://localhost/api/call/change-status/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/call/change-status/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

PUT api/call/change-status/{call}

Create a rating.

Example request:

curl -X POST \
    "http://localhost/api/call/1/rating" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/call/1/rating"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "user_id": [
        "FIELD_REQUIRED"
    ],
    "quality": [
        "FIELD_REQUIRED"
    ],
    "session": [
        "FIELD_REQUIRED"
    ]
}

HTTP Request

POST api/call/{call}/rating

Create a diagnostic.

Example request:

curl -X POST \
    "http://localhost/api/call/diagnostic/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/call/diagnostic/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

POST api/call/diagnostic/{call}

Save the doctor who rejected the call.

Example request:

curl -X POST \
    "http://localhost/api/call/reject/1/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/call/reject/1/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

POST api/call/reject/{call}/{doctor_id}

Alert call event to patient

Example request:

curl -X POST \
    "http://localhost/api/call/accept-event" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/call/accept-event"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

POST api/call/accept-event

Get cities by province

Example request:

curl -X GET \
    -G "http://localhost/api/city/province/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/city/province/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": [
        {
            "id": 16489,
            "name": "11 De Septiembre"
        },
        {
            "id": 18312,
            "name": "12 De Agosto"
        },
        {
            "id": 2493,
            "name": "12 De Octubre"
        },
        {
            "id": 2676,
            "name": "16 De Julio"
        },
        {
            "id": 4409,
            "name": "17 De Agosto"
        },
        {
            "id": 16497,
            "name": "20 De Junio"
        },
        {
            "id": 2464,
            "name": "25 De Mayo"
        },
        {
            "id": 4852,
            "name": "30 De Agosto"
        },
        {
            "id": 4573,
            "name": "4 De Noviembre"
        },
        {
            "id": 5049,
            "name": "9 De Abril"
        },
        {
            "id": 2494,
            "name": "9 De Julio"
        },
        {
            "id": 3723,
            "name": "Abasto"
        },
        {
            "id": 3527,
            "name": "Abbott"
        },
        {
            "id": 4263,
            "name": "Abel"
        },
        {
            "id": 4602,
            "name": "Abra De Hinojo"
        },
        {
            "id": 4695,
            "name": "Acassuso"
        },
        {
            "id": 4779,
            "name": "Aceilan"
        },
        {
            "id": 4302,
            "name": "Acevedo"
        },
        {
            "id": 4137,
            "name": "Achupallas"
        },
        {
            "id": 3063,
            "name": "Adela"
        },
        {
            "id": 2711,
            "name": "Adela Corti"
        },
        {
            "id": 4410,
            "name": "Adela Saenz"
        },
        {
            "id": 2533,
            "name": "Adolfo Alsina"
        },
        {
            "id": 2580,
            "name": "Adolfo Gonzales Chaves"
        },
        {
            "id": 26305,
            "name": "Adrogue"
        },
        {
            "id": 16464,
            "name": "Aeropuerto Ezeiza"
        },
        {
            "id": 4105,
            "name": "Agote"
        },
        {
            "id": 2712,
            "name": "Aguara"
        },
        {
            "id": 4303,
            "name": "Aguas Corrientes"
        },
        {
            "id": 3543,
            "name": "Aguas Verdes"
        },
        {
            "id": 4519,
            "name": "Aguirrezabala"
        },
        {
            "id": 2465,
            "name": "Agustin Mosconi"
        },
        {
            "id": 3683,
            "name": "Agustin Roca"
        },
        {
            "id": 3684,
            "name": "Agustina"
        },
        {
            "id": 4264,
            "name": "Alagon"
        },
        {
            "id": 3648,
            "name": "Alamos"
        },
        {
            "id": 3884,
            "name": "Alastuey"
        },
        {
            "id": 4265,
            "name": "Albari"
        },
        {
            "id": 3800,
            "name": "Alberdi"
        },
        {
            "id": 2586,
            "name": "Alberti"
        },
        {
            "id": 4411,
            "name": "Aldea San Andres"
        },
        {
            "id": 3749,
            "name": "Aldecon"
        },
        {
            "id": 16496,
            "name": "Aldo Bonzi"
        },
        {
            "id": 3593,
            "name": "Alegre"
        },
        {
            "id": 4766,
            "name": "Alejandro Korn"
        },
        {
            "id": 2926,
            "name": "Alejandro Petion"
        },
        {
            "id": 3649,
            "name": "Alfa"
        },
        {
            "id": 3188,
            "name": "Alfalad"
        },
        {
            "id": 2714,
            "name": "Alferez San Martin"
        },
        {
            "id": 2495,
            "name": "Alfredo Demarchi"
        },
        {
            "id": 4937,
            "name": "Algarrobo"
        },
        {
            "id": 4740,
            "name": "Algarrobo"
        },
        {
            "id": 2954,
            "name": "Algarrobo"
        },
        {
            "id": 4304,
            "name": "Almacen Castro"
        },
        {
            "id": 4520,
            "name": "Almacen El Cruce"
        },
        {
            "id": 2948,
            "name": "Almacen El Descanso"
        },
        {
            "id": 2810,
            "name": "Almacen La Colina"
        },
        {
            "id": 4305,
            "name": "Almacen Piatti"
        },
        {
            "id": 4386,
            "name": "Almirante Irizar"
        },
        {
            "id": 3116,
            "name": "Almirante Solier"
        },
        {
            "id": 2801,
            "name": "Alsina"
        },
        {
            "id": 4603,
            "name": "Alta Vista"
        },
        {
            "id": 4106,
            "name": "Altamira"
        },
        {
            "id": 2889,
            "name": "Altamirano"
        },
        {
            "id": 27816,
            "name": "Alto Los Cardales"
        },
        {
            "id": 4981,
            "name": "Alto Verde"
        },
        {
            "id": 4811,
            "name": "Altona"
        },
        {
            "id": 4617,
            "name": "Alvarez De Toledo"
        },
        {
            "id": 18483,
            "name": "Alvarez Jonte"
        },
        {
            "id": 4220,
            "name": "Alvaro Barros"
        },
        {
            "id": 2581,
            "name": "Alzaga"
        },
        {
            "id": 2497,
            "name": "Amalia"
        },
        {
            "id": 3009,
            "name": "Ambrosio P Lezica"
        },
        {
            "id": 4554,
            "name": "America"
        },
        {
            "id": 24840,
            "name": "America Unida"
        },
        {
            "id": 4138,
            "name": "Anasagasti"
        },
        {
            "id": 4266,
            "name": "Ancon"
        },
        {
            "id": 3189,
            "name": "Andant"
        },
        {
            "id": 18273,
            "name": "Anderson"
        },
        {
            "id": 2588,
            "name": "Andres Vaccarezza"
        },
        {
            "id": 4156,
            "name": "Aneque Grande"
        },
        {
            "id": 3861,
            "name": "Antonio Carboni"
        },
        {
            "id": 2678,
            "name": "Antonio De Los Heros"
        },
        {
            "id": 3136,
            "name": "Aparicio"
        },
        {
            "id": 3730,
            "name": "Arana"
        },
        {
            "id": 2534,
            "name": "Arano"
        },
        {
            "id": 2466,
            "name": "Araujo"
        },
        {
            "id": 3190,
            "name": "Arboleda"
        },
        {
            "id": 3908,
            "name": "Arbuco"
        },
        {
            "id": 3509,
            "name": "Arenales"
        },
        {
            "id": 3811,
            "name": "Arenaza"
        },
        {
            "id": 3862,
            "name": "Arevalo"
        },
        {
            "id": 4938,
            "name": "Argerich"
        },
        {
            "id": 2679,
            "name": "Ariel"
        },
        {
            "id": 4604,
            "name": "Arquedas"
        },
        {
            "id": 2811,
            "name": "Arrecifes"
        },
        {
            "id": 3510,
            "name": "Arribe"
        },
        {
            "id": 2913,
            "name": "Arroyo "
        },
        {
            "id": 4984,
            "name": "Arroyo "
        },
        {
            "id": 4605,
            "name": "Arroyo Aguas Blancas"
        },
        {
            "id": 4982,
            "name": "Arroyo Aguila Negra"
        },
        {
            "id": 2907,
            "name": "Arroyo Aleli"
        },
        {
            "id": 4983,
            "name": "Arroyo Botija Falsa"
        },
        {
            "id": 4741,
            "name": "Arroyo Burgos"
        },
        {
            "id": 3231,
            "name": "Arroyo Canelon"
        },
        {
            "id": 2908,
            "name": "Arroyo Carabelitas"
        },
        {
            "id": 4157,
            "name": "Arroyo Chico"
        },
        {
            "id": 4606,
            "name": "Arroyo Corto"
        },
        {
            "id": 3478,
            "name": "Arroyo De La Cruz"
        },
        {
            "id": 2949,
            "name": "Arroyo De Luna"
        },
        {
            "id": 2853,
            "name": "Arroyo Del Pescado"
        },
        {
            "id": 4641,
            "name": "Arroyo Dulce"
        },
        {
            "id": 2909,
            "name": "Arroyo El Ahogado"
        },
        {
            "id": 3650,
            "name": "Arroyo El Chingolo"
        },
        {
            "id": 4065,
            "name": "Arroyo Grande"
        },
        {
            "id": 2854,
            "name": "Arroyo La Maza"
        },
        {
            "id": 2910,
            "name": "Arroyo Las Cruces"
        },
        {
            "id": 2911,
            "name": "Arroyo Las Rosas"
        },
        {
            "id": 3232,
            "name": "Arroyo Las Rosas"
        },
        {
            "id": 2677,
            "name": "Arroyo Los Huesos"
        },
        {
            "id": 2912,
            "name": "Arroyo Los Tigres"
        },
        {
            "id": 4985,
            "name": "Arroyo Negro"
        },
        {
            "id": 3117,
            "name": "Arroyo Pareja"
        },
        {
            "id": 2914,
            "name": "Arroyo Pesqueria"
        },
        {
            "id": 2915,
            "name": "Arroyo Tajiber"
        },
        {
            "id": 3651,
            "name": "Arroyo Venado"
        },
        {
            "id": 2916,
            "name": "Arroyo Zanjon"
        },
        {
            "id": 3724,
            "name": "Arturo Segui"
        },
        {
            "id": 2535,
            "name": "Arturo Vatteone"
        },
        {
            "id": 2876,
            "name": "Asamblea"
        },
        {
            "id": 3511,
            "name": "Ascencion"
        },
        {
            "id": 4267,
            "name": "Asturias"
        },
        {
            "id": 3191,
            "name": "Atahualpa"
        },
        {
            "id": 3909,
            "name": "Atalaya"
        },
        {
            "id": 4986,
            "name": "Atucha"
        },
        {
            "id": 2458,
            "name": "Avellaneda"
        },
        {
            "id": 2536,
            "name": "Avestruz"
        },
        {
            "id": 2666,
            "name": "Ayacucho"
        },
        {
            "id": 4655,
            "name": "Azcuenaga"
        },
        {
            "id": 4413,
            "name": "Azopardo"
        },
        {
            "id": 2680,
            "name": "Azul"
        },
        {
            "id": 4086,
            "name": "B Los Aromos San Patricio"
        },
        {
            "id": 4087,
            "name": "B Nuestra Se"
        },
        {
            "id": 4089,
            "name": "B Sarmiento Don Rolando"
        },
        {
            "id": 4088,
            "name": "B Sta Catalina Hornero La Loma"
        },
        {
            "id": 2498,
            "name": "Bacacay"
        },
        {
            "id": 4555,
            "name": "Badano"
        },
        {
            "id": 16353,
            "name": "Bahia Blanca"
        },
        {
            "id": 3010,
            "name": "Bahia San Blas"
        },
        {
            "id": 4911,
            "name": "Baigorrita"
        },
        {
            "id": 3118,
            "name": "Bajo Hondo"
        },
        {
            "id": 2778,
            "name": "Balcarce"
        },
        {
            "id": 2615,
            "name": "Balneario Atlantida"
        },
        {
            "id": 2616,
            "name": "Balneario Camet Norte"
        },
        {
            "id": 4939,
            "name": "Balneario Chapalco"
        },
        {
            "id": 4679,
            "name": "Balneario Claromeco"
        },
        {
            "id": 2617,
            "name": "Balneario Frente Mar"
        },
        {
            "id": 2618,
            "name": "Balneario La Baliza"
        },
        {
            "id": 2619,
            "name": "Balneario La Caleta"
        },
        {
            "id": 4158,
            "name": "Balneario Los Angeles"
        },
        {
            "id": 4447,
            "name": "Balneario Mar Chiquita"
        },
        {
            "id": 2620,
            "name": "Balneario Mar De Cobo"
        },
        {
            "id": 4875,
            "name": "Balneario Oceano"
        },
        {
            "id": 4876,
            "name": "Balneario Orense"
        },
        {
            "id": 4124,
            "name": "Balneario Oriente"
        },
        {
            "id": 3119,
            "name": "Balneario Parada"
        },
        {
            "id": 2621,
            "name": "Balneario Playa Dorada"
        },
        {
            "id": 4940,
            "name": "Balneario San Antonio"
        },
        {
            "id": 4066,
            "name": "Balneario Santa Elena"
        },
        {
            "id": 4125,
            "name": "Balneario Sauce Grande"
        },
        {
            "id": 3812,
            "name": "Balsa"
        },
        {
            "id": 3628,
            "name": "Banderalo"
        },
        {
            "id": 16448,
            "name": "Banfield"
        },
        {
            "id": 2802,
            "name": "Baradero"
        },
        {
            "id": 2822,
            "name": "Barker"
        },
        {
            "id": 4590,
            "name": "Barrientos"
        },
        {
            "id": 2927,
            "name": "Barrio 1 De Mayo"
        },
        {
            "id": 4449,
            "name": "Barrio Batan"
        },
        {
            "id": 3685,
            "name": "Barrio Carosio"
        },
        {
            "id": 4452,
            "name": "Barrio Chapadmalal"
        },
        {
            "id": 3244,
            "name": "Barrio El Cazador"
        },
        {
            "id": 3910,
            "name": "Barrio El Porte"
        },
        {
            "id": 4458,
            "name": "Barrio Emir Ramon Juarez"
        },
        {
            "id": 3233,
            "name": "Barrio Garin Norte"
        },
        {
            "id": 4461,
            "name": "Barrio Gastronomico"
        },
        {
            "id": 4107,
            "name": "Barrio General San Martin"
        },
        {
            "id": 4853,
            "name": "Barrio Indio Trompa"
        },
        {
            "id": 2499,
            "name": "Barrio Julio De Vedia"
        },
        {
            "id": 2890,
            "name": "Barrio La Dolly"
        },
        {
            "id": 4221,
            "name": "Barrio La Luisa"
        },
        {
            "id": 2891,
            "name": "Barrio Las Mandarinas"
        },
        {
            "id": 4268,
            "name": "Barrio Obrero"
        },
        {
            "id": 2622,
            "name": "Barrio Oeste"
        },
        {
            "id": 2623,
            "name": "Barrio Parque Bristol"
        },
        {
            "id": 3234,
            "name": "Barrio Parque Lambare"
        },
        {
            "id": 16447,
            "name": "Barrio Parque Leloir"
        },
        {
            "id": 3544,
            "name": "Barrio Pedro Rocco"
        },
        {
            "id": 4473,
            "name": "Barrio Pueblo Nuevo"
        },
        {
            "id": 4387,
            "name": "Barrio San Alejo"
        },
        {
            "id": 18367,
            "name": "Barrio San Jacinto"
        },
        {
            "id": 4767,
            "name": "Barrio San Pablo"
        },
        {
            "id": 4768,
            "name": "Barrio Santa Magdalena"
        },
        {
            "id": 4478,
            "name": "Barrio Tierra De Oro"
        },
        {
            "id": 4479,
            "name": "Barrio Tiro Federal"
        },
        {
            "id": 4306,
            "name": "Barrio Trocha"
        },
        {
            "id": 3687,
            "name": "Barrio Villa Ortega"
        },
        {
            "id": 4618,
            "name": "Barrio Villa Saladillo"
        },
        {
            "id": 18270,
            "name": "Base Aeronaval Cmte Espora"
        },
        {
            "id": 3912,
            "name": "Base Aeronaval Punta Indio"
        },
        {
            "id": 2681,
            "name": "Base Naval Azopardo"
        },
        {
            "id": 3221,
            "name": "Base Naval Rio Santiago"
        },
        {
            "id": 3120,
            "name": "Baterias"
        },
        {
            "id": 3170,
            "name": "Bathurst Estacion"
        },
        {
            "id": 2589,
            "name": "Baudrix"
        },
        {
            "id": 3813,
            "name": "Bayauca"
        },
        {
            "id": 4696,
            "name": "Beccar"
        },
        {
            "id": 3235,
            "name": "Belen De Escobar"
        },
        {
            "id": 16522,
            "name": "Bella Vista"
        },
        {
            "id": 2955,
            "name": "Bellocq"
        },
        {
            "id": 16532,
            "name": "Benavidez"
        },
        {
            "id": 3095,
            "name": "Benitez"
        },
        {
            "id": 2824,
            "name": "Benito Juarez"
        },
        {
            "id": 16588,
            "name": "Berazategui"
        },
        {
            "id": 4642,
            "name": "Berdier"
        },
        {
            "id": 2855,
            "name": "Berisso"
        },
        {
            "id": 3814,
            "name": "Bermudez"
        },
        {
            "id": 16546,
            "name": "Bernal Este"
        },
        {
            "id": 16547,
            "name": "Bernal Oeste"
        },
        {
            "id": 2682,
            "name": "Bernardo Vera Y Pintado"
        },
        {
            "id": 4837,
            "name": "Berraondo"
        },
        {
            "id": 4854,
            "name": "Beruti"
        },
        {
            "id": 4222,
            "name": "Blanca Grande"
        },
        {
            "id": 3688,
            "name": "Blandengues"
        },
        {
            "id": 2660,
            "name": "Blaquier"
        },
        {
            "id": 2467,
            "name": "Blas Dura"
        },
        {
            "id": 2917,
            "name": "Blondeau"
        },
        {
            "id": 3911,
            "name": "Bme Bavio Gral Mansilla"
        },
        {
            "id": 4294,
            "name": "Bocayuba"
        },
        {
            "id": 2861,
            "name": "Bolivar"
        },
        {
            "id": 3652,
            "name": "Bonifacio"
        },
        {
            "id": 3528,
            "name": "Bonnement"
        },
        {
            "id": 4414,
            "name": "Bordenave"
        },
        {
            "id": 2779,
            "name": "Bosch"
        },
        {
            "id": 16576,
            "name": "Bosques"
        },
        {
            "id": 4697,
            "name": "Boulogne"
        },
        {
            "id": 2877,
            "name": "Bragado"
        },
        {
            "id": 3653,
            "name": "Bravo Del Dos"
        },
        {
            "id": 18251,
            "name": "Buchanan"
        },
        {
            "id": 26306,
            "name": "Burzaco"
        },
        {
            "id": 3096,
            "name": "Ca"
        },
        {
            "id": 3629,
            "name": "Ca"
        },
        {
            "id": 3886,
            "name": "Ca"
        },
        {
            "id": 2928,
            "name": "Ca"
        },
        {
            "id": 2541,
            "name": "Ca"
        },
        {
            "id": 2813,
            "name": "Ca"
        },
        {
            "id": 4941,
            "name": "Cabeza De Buey"
        },
        {
            "id": 2737,
            "name": "Cabildo"
        },
        {
            "id": 4307,
            "name": "Cabo San Fermin"
        },
        {
            "id": 2683,
            "name": "Cachari"
        },
        {
            "id": 2956,
            "name": "Cadret"
        },
        {
            "id": 4636,
            "name": "Cailomuta"
        },
        {
            "id": 3121,
            "name": "Calderon"
        },
        {
            "id": 4223,
            "name": "Calera Avellaneda"
        },
        {
            "id": 4067,
            "name": "Calfucura"
        },
        {
            "id": 3137,
            "name": "Calvo"
        },
        {
            "id": 4363,
            "name": "Camaron Chico"
        },
        {
            "id": 2500,
            "name": "Cambaceres"
        },
        {
            "id": 4482,
            "name": "Camet"
        },
        {
            "id": 2684,
            "name": "Caminera Azul"
        },
        {
            "id": 2825,
            "name": "Caminera Juarez"
        },
        {
            "id": 3885,
            "name": "Caminera Lujan"
        },
        {
            "id": 2780,
            "name": "Caminera Napaleofu"
        },
        {
            "id": 2892,
            "name": "Caminera Samborombon"
        },
        {
            "id": 18252,
            "name": "Camino Centenario Km 11500"
        },
        {
            "id": 4068,
            "name": "Campamento"
        },
        {
            "id": 2918,
            "name": "Campana"
        },
        {
            "id": 4269,
            "name": "Campo Aristimu"
        },
        {
            "id": 4309,
            "name": "Campo Buena Vista"
        },
        {
            "id": 4912,
            "name": "Campo Coliqueo"
        },
        {
            "id": 2812,
            "name": "Campo Crisol"
        },
        {
            "id": 16523,
            "name": "Campo De Mayo"
        },
        {
            "id": 2537,
            "name": "Campo Del Norte Americano"
        },
        {
            "id": 4711,
            "name": "Campo Funke"
        },
        {
            "id": 2950,
            "name": "Campo La Elisa"
        },
        {
            "id": 3138,
            "name": "Campo La Lima"
        },
        {
            "id": 3479,
            "name": "Campo La Nena"
        },
        {
            "id": 2781,
            "name": "Campo La Plata"
        },
        {
            "id": 4913,
            "name": "Campo La Tribu"
        },
        {
            "id": 2538,
            "name": "Campo La Zulema"
        },
        {
            "id": 2782,
            "name": "Campo Leite"
        },
        {
            "id": 2893,
            "name": "Campo Lope Seco"
        },
        {
            "id": 2539,
            "name": "Campo Los Aromos"
        },
        {
            "id": 27791,
            "name": "Campo Maipu"
        },
        {
            "id": 4139,
            "name": "Campo Pe"
        },
        {
            "id": 3838,
            "name": "Campo Pelaez"
        },
        {
            "id": 4812,
            "name": "Campo Rojas"
        },
        {
            "id": 4591,
            "name": "Campo Sabate"
        },
        {
            "id": 2540,
            "name": "Campo San Juan"
        },
        {
            "id": 2685,
            "name": "Campodonico"
        },
        {
            "id": 18277,
            "name": "Campomar Vi"
        },
        {
            "id": 3041,
            "name": "Canal 15 Cerro De La Gloria"
        },
        {
            "id": 4987,
            "name": "Canal Martin Irigoyen"
        },
        {
            "id": 2919,
            "name": "Canal N Alem 1a Sec"
        },
        {
            "id": 2920,
            "name": "Canal N Alem 2a Sec"
        },
        {
            "id": 3594,
            "name": "Cancha Del Pollo"
        },
        {
            "id": 2667,
            "name": "Cangallo"
        },
        {
            "id": 16465,
            "name": "Canning"
        },
        {
            "id": 16376,
            "name": "Canning"
        },
        {
            "id": 2542,
            "name": "Canonigo Gorriti"
        },
        {
            "id": 4780,
            "name": "Cantera Aguirre"
        },
        {
            "id": 4781,
            "name": "Cantera Albion"
        },
        {
            "id": 4782,
            "name": "Cantera La Aurora"
        },
        {
            "id": 4783,
            "name": "Cantera La Federacion"
        },
        {
            "id": 4784,
            "name": "Cantera La Movediza"
        },
        {
            "id": 4785,
            "name": "Cantera Monte Cristo"
        },
        {
            "id": 4786,
            "name": "Cantera San Luis"
        },
        {
            "id": 3011,
            "name": "Cantera Villalonga"
        },
        {
            "id": 4224,
            "name": "Canteras De Gregorini"
        },
        {
            "id": 4773,
            "name": "Capdepont"
        },
        {
            "id": 3480,
            "name": "Capilla Del Se"
        },
        {
            "id": 4270,
            "name": "Capitan Castro"
        },
        {
            "id": 2951,
            "name": "Capitan Sarmiento"
        },
        {
            "id": 4571,
            "name": "Carabelas"
        },
        {
            "id": 21722,
            "name": "Carapachay"
        },
        {
            "id": 3012,
            "name": "Cardenal Cagliero"
        },
        {
            "id": 2543,
            "name": "Carhue"
        },
        {
            "id": 3940,
            "name": "Cari Larquea"
        },
        {
            "id": 3566,
            "name": "Carilo"
        },
        {
            "id": 4592,
            "name": "Carlos Beguerie"
        },
        {
            "id": 2958,
            "name": "Carlos Casares"
        },
        {
            "id": 3887,
            "name": "Carlos Keen"
        },
        {
            "id": 4388,
            "name": "Carlos Lemee"
        },
        {
            "id": 2501,
            "name": "Carlos Maria Naon"
        },
        {
            "id": 3815,
            "name": "Carlos Salas"
        },
        {
            "id": 16466,
            "name": "Carlos Spegazzini"
        },
        {
            "id": 2977,
            "name": "Carlos Tejedor"
        },
        {
            "id": 2998,
            "name": "Carmen De Areco"
        },
        {
            "id": 3013,
            "name": "Carmen De Patagones"
        },
        {
            "id": 4364,
            "name": "Casalins"
        },
        {
            "id": 3654,
            "name": "Casbas"
        },
        {
            "id": 3171,
            "name": "Cascada"
        },
        {
            "id": 16481,
            "name": "Caseros"
        },
        {
            "id": 3655,
            "name": "Casey"
        },
        {
            "id": 16434,
            "name": "Castelar"
        },
        {
            "id": 3042,
            "name": "Castelli"
        },
        {
            "id": 3049,
            "name": "Castilla"
        },
        {
            "id": 4619,
            "name": "Cazon"
        },
        {
            "id": 2959,
            "name": "Centenario"
        },
        {
            "id": 16589,
            "name": "Centro Agricola El Pato"
        },
        {
            "id": 3043,
            "name": "Centro Guerrero"
        },
        {
            "id": 4556,
            "name": "Cerrito"
        },
        {
            "id": 2686,
            "name": "Cerro Aguila"
        },
        {
            "id": 18257,
            "name": "Cerro De La Gloria Canal 15"
        },
        {
            "id": 4787,
            "name": "Cerro De Los Leones"
        },
        {
            "id": 4225,
            "name": "Cerro Negro"
        },
        {
            "id": 4226,
            "name": "Cerro Sotuyo"
        },
        {
            "id": 3050,
            "name": "Chacabuco"
        },
        {
            "id": 4310,
            "name": "Chacra Experimental Inta"
        },
        {
            "id": 3750,
            "name": "Chala Quilca"
        },
        {
            "id": 4914,
            "name": "Chancay"
        },
        {
            "id": 4538,
            "name": "Chapaleufu"
        },
        {
            "id": 2826,
            "name": "Chapar"
        },
        {
            "id": 2544,
            "name": "Chapi Talo"
        },
        {
            "id": 3529,
            "name": "Chas"
        },
        {
            "id": 3065,
            "name": "Chascomus"
        },
        {
            "id": 4838,
            "name": "Chasico"
        },
        {
            "id": 3481,
            "name": "Chenaut"
        },
        {
            "id": 4271,
            "name": "Chiclana"
        },
        {
            "id": 2687,
            "name": "Chillar"
        },
        {
            "id": 27531,
            "name": "Chivilcoy"
        },
        {
            "id": 2739,
            "name": "Choique"
        },
        {
            "id": 16482,
            "name": "Churruca"
        },
        {
            "id": 16499,
            "name": "Cities Evita"
        },
        {
            "id": 16483,
            "name": "Cities Jardin Del Palomar"
        },
        {
            "id": 16498,
            "name": "Cities Madero"
        },
        {
            "id": 16484,
            "name": "Citiesela"
        },
        {
            "id": 3725,
            "name": "City Bell"
        },
        {
            "id": 4159,
            "name": "Claraz"
        },
        {
            "id": 4877,
            "name": "Claudio C Molina"
        },
        {
            "id": 3567,
            "name": "Claverie"
        },
        {
            "id": 26307,
            "name": "Claypole"
        },
        {
            "id": 4069,
            "name": "Cobo"
        },
        {
            "id": 2740,
            "name": "Cochrane"
        },
        {
            "id": 2952,
            "name": "Colegio San Pablo"
        },
        {
            "id": 3051,
            "name": "Coliqueo"
        },
        {
            "id": 4539,
            "name": "Colman"
        },
        {
            "id": 3109,
            "name": "Colon"
        },
        {
            "id": 3801,
            "name": "Colonia Alberdi"
        },
        {
            "id": 3016,
            "name": "Colonia Barga"
        },
        {
            "id": 2545,
            "name": "Colonia Baron Hirsch"
        },
        {
            "id": 3913,
            "name": "Colonia Beethoven"
        },
        {
            "id": 18261,
            "name": "Colonia Bella Vista"
        },
        {
            "id": 4942,
            "name": "Colonia Cuarenta Y Tres"
        },
        {
            "id": 4483,
            "name": "Colonia De Vac Chapadmalal"
        },
        {
            "id": 4415,
            "name": "Colonia Dr Gdor Udaondo"
        },
        {
            "id": 4557,
            "name": "Colonia El Balde"
        },
        {
            "id": 3015,
            "name": "Colonia El Guanaco"
        },
        {
            "id": 4416,
            "name": "Colonia El Pincen"
        },
        {
            "id": 3066,
            "name": "Colonia Escuela Argentina"
        },
        {
            "id": 3941,
            "name": "Colonia Ferrari"
        },
        {
            "id": 4227,
            "name": "Colonia Hinojo"
        },
        {
            "id": 4417,
            "name": "Colonia Hipolito Yrigoyen"
        },
        {
            "id": 4090,
            "name": "Colonia Hogar R Gutierrez"
        },
        {
            "id": 2468,
            "name": "Colonia Inchausti"
        },
        {
            "id": 4572,
            "name": "Colonia La Beba"
        },
        {
            "id": 4418,
            "name": "Colonia La Catalina"
        },
        {
            "id": 3017,
            "name": "Colonia La Celina"
        },
        {
            "id": 2960,
            "name": "Colonia La Esperanza"
        },
        {
            "id": 2546,
            "name": "Colonia La Estrella"
        },
        {
            "id": 3018,
            "name": "Colonia La Graciela"
        },
        {
            "id": 4521,
            "name": "Colonia La Invernada"
        },
        {
            "id": 4943,
            "name": "Colonia La Merced"
        },
        {
            "id": 4311,
            "name": "Colonia La Nena"
        },
        {
            "id": 4522,
            "name": "Colonia La Noria"
        },
        {
            "id": 4523,
            "name": "Colonia La Reina"
        },
        {
            "id": 4312,
            "name": "Colonia La Vanguardia"
        },
        {
            "id": 4419,
            "name": "Colonia La Vascongada"
        },
        {
            "id": 4313,
            "name": "Colonia Laborderoy"
        },
        {
            "id": 2547,
            "name": "Colonia Lapin"
        },
        {
            "id": 2502,
            "name": "Colonia Las Yescas"
        },
        {
            "id": 2548,
            "name": "Colonia Leven"
        },
        {
            "id": 3019,
            "name": "Colonia Los Alamos"
        },
        {
            "id": 4945,
            "name": "Colonia Los Alfalfares"
        },
        {
            "id": 4915,
            "name": "Colonia Los Bosques"
        },
        {
            "id": 3512,
            "name": "Colonia Los Hornos"
        },
        {
            "id": 4916,
            "name": "Colonia Los Huesos"
        },
        {
            "id": 4314,
            "name": "Colonia Los Toldos"
        },
        {
            "id": 4671,
            "name": "Colonia Los Tres Usaris"
        },
        {
            "id": 2961,
            "name": "Colonia Mauricio"
        },
        {
            "id": 3014,
            "name": "Colonia Miguel Esteverena"
        },
        {
            "id": 4944,
            "name": "Colonia Monte La Plata"
        },
        {
            "id": 2549,
            "name": "Colonia Murature"
        },
        {
            "id": 3888,
            "name": "Colonia Nac De Alienados"
        },
        {
            "id": 4091,
            "name": "Colonia Nacional De Menores"
        },
        {
            "id": 2550,
            "name": "Colonia Naviera"
        },
        {
            "id": 4228,
            "name": "Colonia Nieves"
        },
        {
            "id": 4946,
            "name": "Colonia Ocampo"
        },
        {
            "id": 2590,
            "name": "Colonia Palantelen"
        },
        {
            "id": 2551,
            "name": "Colonia Phillipson N 1"
        },
        {
            "id": 4947,
            "name": "Colonia Pueblo Ruso"
        },
        {
            "id": 4229,
            "name": "Colonia Rusa"
        },
        {
            "id": 2878,
            "name": "Colonia San Eduardo"
        },
        {
            "id": 4948,
            "name": "Colonia San Enrique"
        },
        {
            "id": 4917,
            "name": "Colonia San Francisco"
        },
        {
            "id": 3020,
            "name": "Colonia San Francisco"
        },
        {
            "id": 4607,
            "name": "Colonia San Martin"
        },
        {
            "id": 4230,
            "name": "Colonia San Miguel"
        },
        {
            "id": 4608,
            "name": "Colonia San Pedro"
        },
        {
            "id": 3656,
            "name": "Colonia San Ramon"
        },
        {
            "id": 2962,
            "name": "Colonia Santa Maria"
        },
        {
            "id": 2552,
            "name": "Colonia Santa Mariana"
        },
        {
            "id": 4420,
            "name": "Colonia Santa Rosa"
        },
        {
            "id": 2929,
            "name": "Colonia Santa Rosa"
        },
        {
            "id": 2978,
            "name": "Colonia Sere"
        },
        {
            "id": 4524,
            "name": "Colonia Stegman"
        },
        {
            "id": 3021,
            "name": "Colonia Tapatta"
        },
        {
            "id": 4742,
            "name": "Colonia Velez"
        },
        {
            "id": 2591,
            "name": "Colonia Zambungo"
        },
        {
            "id": 4108,
            "name": "Comahue Oeste"
        },
        {
            "id": 3067,
            "name": "Comandante Giribone"
        },
        {
            "id": 2624,
            "name": "Comandante Nicanor Otamendi"
        },
        {
            "id": 2879,
            "name": "Comodoro Py"
        },
        {
            "id": 4558,
            "name": "Condarco"
        },
        {
            "id": 4680,
            "name": "Cooper"
        },
        {
            "id": 4878,
            "name": "Copetonas"
        },
        {
            "id": 4976,
            "name": "Coraceros"
        },
        {
            "id": 4855,
            "name": "Corazzi"
        },
        {
            "id": 2503,
            "name": "Corbett"
        },
        {
            "id": 3775,
            "name": "Coronel Boerr"
        },
        {
            "id": 2894,
            "name": "Coronel Brandsen"
        },
        {
            "id": 3630,
            "name": "Coronel Charlone"
        },
        {
            "id": 3139,
            "name": "Coronel Dorrego"
        },
        {
            "id": 3156,
            "name": "Coronel Falcon"
        },
        {
            "id": 3604,
            "name": "Coronel Granada"
        },
        {
            "id": 4643,
            "name": "Coronel Isle"
        },
        {
            "id": 3192,
            "name": "Coronel Marcelino Freyre"
        },
        {
            "id": 2592,
            "name": "Coronel Mon"
        },
        {
            "id": 3157,
            "name": "Coronel Pringles"
        },
        {
            "id": 2828,
            "name": "Coronel Rodolfo Bunge"
        },
        {
            "id": 2593,
            "name": "Coronel Segui"
        },
        {
            "id": 3172,
            "name": "Coronel Suarez"
        },
        {
            "id": 4070,
            "name": "Coronel Vidal"
        },
        {
            "id": 2742,
            "name": "Corti"
        },
        {
            "id": 3889,
            "name": "Cortines"
        },
        {
            "id": 3545,
            "name": "Costa Azul"
        },
        {
            "id": 3839,
            "name": "Costa Bonita Balneario"
        },
        {
            "id": 4525,
            "name": "Costa Brava"
        },
        {
            "id": 27595,
            "name": "Costa Del Este"
        },
        {
            "id": 2688,
            "name": "Covello"
        },
        {
            "id": 4681,
            "name": "Cristiano Muerto"
        },
        {
            "id": 3914,
            "name": "Cristino Benavidez"
        },
        {
            "id": 4813,
            "name": "Crotto"
        },
        {
            "id": 2459,
            "name": "Crucesita"
        },
        {
            "id": 3595,
            "name": "Cuartel 2"
        },
        {
            "id": 3068,
            "name": "Cuartel 6"
        },
        {
            "id": 3069,
            "name": "Cuartel 8"
        },
        {
            "id": 3890,
            "name": "Cuartel Cuatro"
        },
        {
            "id": 27785,
            "name": "Cuartel Ii"
        },
        {
            "id": 27792,
            "name": "Cuartel Iv"
        },
        {
            "id": 27853,
            "name": "Cuartel Iv"
        },
        {
            "id": 16526,
            "name": "Cuartel V"
        },
        {
            "id": 27793,
            "name": "Cuartel V"
        },
        {
            "id": 27789,
            "name": "Cuartel Vii"
        },
        {
            "id": 3052,
            "name": "Cucha Cucha"
        },
        {
            "id": 4656,
            "name": "Cucullu"
        },
        {
            "id": 2979,
            "name": "Cuenca"
        },
        {
            "id": 3173,
            "name": "Cura Malal"
        },
        {
            "id": 2980,
            "name": "Curaru"
        },
        {
            "id": 3174,
            "name": "D Orbigny"
        },
        {
            "id": 3193,
            "name": "Daireaux"
        },
        {
            "id": 27788,
            "name": "Dantas"
        },
        {
            "id": 4421,
            "name": "Darregueira"
        },
        {
            "id": 4295,
            "name": "De Bary"
        },
        {
            "id": 3802,
            "name": "De Bruyn"
        },
        {
            "id": 4788,
            "name": "De La Canal"
        },
        {
            "id": 2582,
            "name": "De La Garma"
        },
        {
            "id": 4682,
            "name": "Deferrari"
        },
        {
            "id": 4620,
            "name": "Del Carril"
        },
        {
            "id": 2469,
            "name": "Del Valle"
        },
        {
            "id": 4389,
            "name": "Del Viso"
        },
        {
            "id": 2553,
            "name": "Delfin Huergo"
        },
        {
            "id": 3513,
            "name": "Delgado"
        },
        {
            "id": 2504,
            "name": "Dennehy"
        },
        {
            "id": 3158,
            "name": "Despe"
        },
        {
            "id": 3222,
            "name": "Destileria Fiscal"
        },
        {
            "id": 4789,
            "name": "Desvio Aguirre"
        },
        {
            "id": 3514,
            "name": "Desvio El Chingolo"
        },
        {
            "id": 2470,
            "name": "Desvio Garbarini"
        },
        {
            "id": 2505,
            "name": "Desvio Kilometro 234"
        },
        {
            "id": 2895,
            "name": "Desvio Kilometro 55"
        },
        {
            "id": 3515,
            "name": "Desvio Kilometro 95"
        },
        {
            "id": 4422,
            "name": "Desvio San Alejo"
        },
        {
            "id": 3122,
            "name": "Desvio Sandrini"
        },
        {
            "id": 3482,
            "name": "Diego Gaynor"
        },
        {
            "id": 2625,
            "name": "Dionisia"
        },
        {
            "id": 16533,
            "name": "Dique Lujan"
        },
        {
            "id": 3223,
            "name": "Dock Central"
        },
        {
            "id": 2460,
            "name": "Dock Sud"
        },
        {
            "id": 3891,
            "name": "Doctor Domingo Cabred"
        },
        {
            "id": 3776,
            "name": "Doctor Domingo Harosteguy"
        },
        {
            "id": 3208,
            "name": "Dolores"
        },
        {
            "id": 4769,
            "name": "Domselaar"
        },
        {
            "id": 16548,
            "name": "Don Bosco"
        },
        {
            "id": 3070,
            "name": "Don Cipriano"
        },
        {
            "id": 16534,
            "name": "Don Torcuato"
        },
        {
            "id": 4365,
            "name": "Don Vicente"
        },
        {
            "id": 3605,
            "name": "Dos Hermanos"
        },
        {
            "id": 3840,
            "name": "Dos Naciones"
        },
        {
            "id": 2896,
            "name": "Doyhenard"
        },
        {
            "id": 4743,
            "name": "Doyle"
        },
        {
            "id": 3631,
            "name": "Drabble"
        },
        {
            "id": 2981,
            "name": "Drysdale"
        },
        {
            "id": 4609,
            "name": "Ducos"
        },
        {
            "id": 2506,
            "name": "Dudignac"
        },
        {
            "id": 4610,
            "name": "Dufaur"
        },
        {
            "id": 4672,
            "name": "Duggan"
        },
        {
            "id": 4856,
            "name": "Duhau"
        },
        {
            "id": 4231,
            "name": "Dura"
        },
        {
            "id": 3606,
            "name": "Dussaud"
        },
        {
            "id": 3803,
            "name": "Edmundo Perkins"
        },
        {
            "id": 2661,
            "name": "Eduardo Costa"
        },
        {
            "id": 4540,
            "name": "Ega"
        },
        {
            "id": 3209,
            "name": "El 60"
        },
        {
            "id": 4366,
            "name": "El Alba"
        },
        {
            "id": 3863,
            "name": "El Araza"
        },
        {
            "id": 3110,
            "name": "El Arbolito"
        },
        {
            "id": 3022,
            "name": "El Bagual"
        },
        {
            "id": 4879,
            "name": "El Bombero"
        },
        {
            "id": 4484,
            "name": "El Boqueron"
        },
        {
            "id": 27783,
            "name": "El Boqueron"
        },
        {
            "id": 2957,
            "name": "El Camoati"
        },
        {
            "id": 3071,
            "name": "El Carbon"
        },
        {
            "id": 4316,
            "name": "El Carmen"
        },
        {
            "id": 4541,
            "name": "El Carmen De Langueyu"
        },
        {
            "id": 2963,
            "name": "El Carpincho"
        },
        {
            "id": 4880,
            "name": "El Carretero"
        },
        {
            "id": 2626,
            "name": "El Centinela"
        },
        {
            "id": 3568,
            "name": "El Chaja"
        },
        {
            "id": 4542,
            "name": "El Chalar"
        },
        {
            "id": 3841,
            "name": "El Cheique"
        },
        {
            "id": 27603,
            "name": "El Chelforo"
        },
        {
            "id": 2650,
            "name": "El Chumbiao"
        },
        {
            "id": 4840,
            "name": "El Cortapie"
        },
        {
            "id": 4683,
            "name": "El Cristiano"
        },
        {
            "id": 27799,
            "name": "El Cruce"
        },
        {
            "id": 4744,
            "name": "El Descanso"
        },
        {
            "id": 3072,
            "name": "El Destino"
        },
        {
            "id": 3632,
            "name": "El Dia"
        },
        {
            "id": 3159,
            "name": "El Divisorio"
        },
        {
            "id": 3804,
            "name": "El Dorado"
        },
        {
            "id": 3788,
            "name": "El Durazno"
        },
        {
            "id": 4745,
            "name": "El Espinillo"
        },
        {
            "id": 3073,
            "name": "El Eucaliptus"
        },
        {
            "id": 2921,
            "name": "El Fenix"
        },
        {
            "id": 4790,
            "name": "El Gallo"
        },
        {
            "id": 3777,
            "name": "El Gualicho"
        },
        {
            "id": 2783,
            "name": "El Hervidero"
        },
        {
            "id": 2507,
            "name": "El Jabali"
        },
        {
            "id": 5051,
            "name": "El Jaguel"
        },
        {
            "id": 4574,
            "name": "El Jaguel"
        },
        {
            "id": 2784,
            "name": "El Junco"
        },
        {
            "id": 4526,
            "name": "El Jupiter"
        },
        {
            "id": 3842,
            "name": "El Lenguaraz"
        },
        {
            "id": 16485,
            "name": "El Libertador"
        },
        {
            "id": 18276,
            "name": "El Lucero"
        },
        {
            "id": 2829,
            "name": "El Luchador"
        },
        {
            "id": 4621,
            "name": "El Mangrullo"
        },
        {
            "id": 2627,
            "name": "El Marquesado"
        },
        {
            "id": 4814,
            "name": "El Mirador"
        },
        {
            "id": 3843,
            "name": "El Moro"
        },
        {
            "id": 2814,
            "name": "El Nacional"
        },
        {
            "id": 3657,
            "name": "El Nilo"
        },
        {
            "id": 16436,
            "name": "El Palomar"
        },
        {
            "id": 4770,
            "name": "El Pampero"
        },
        {
            "id": 4949,
            "name": "El Paraiso"
        },
        {
            "id": 4527,
            "name": "El Paraiso"
        },
        {
            "id": 2651,
            "name": "El Parche"
        },
        {
            "id": 2554,
            "name": "El Parque"
        },
        {
            "id": 3111,
            "name": "El Pelado"
        },
        {
            "id": 3160,
            "name": "El Pensamiento"
        },
        {
            "id": 3607,
            "name": "El Peregrino"
        },
        {
            "id": 3915,
            "name": "El Pino"
        },
        {
            "id": 4160,
            "name": "El Pito"
        },
        {
            "id": 2628,
            "name": "El Pito"
        },
        {
            "id": 2862,
            "name": "El Porvenir"
        },
        {
            "id": 4317,
            "name": "El Quemado"
        },
        {
            "id": 4272,
            "name": "El Recado"
        },
        {
            "id": 4071,
            "name": "El Refugio"
        },
        {
            "id": 4644,
            "name": "El Retiro"
        },
        {
            "id": 4918,
            "name": "El Retiro"
        },
        {
            "id": 3074,
            "name": "El Rincon"
        },
        {
            "id": 4950,
            "name": "El Rincon"
        },
        {
            "id": 3916,
            "name": "El Rosario"
        },
        {
            "id": 4273,
            "name": "El Santiago"
        },
        {
            "id": 4815,
            "name": "El Sauce"
        },
        {
            "id": 3530,
            "name": "El Siasgo"
        },
        {
            "id": 2803,
            "name": "El Silencio"
        },
        {
            "id": 4318,
            "name": "El Socorro"
        },
        {
            "id": 4486,
            "name": "El Soldado"
        },
        {
            "id": 16535,
            "name": "El Talar"
        },
        {
            "id": 4988,
            "name": "El Tatu"
        },
        {
            "id": 2508,
            "name": "El Tejar"
        },
        {
            "id": 3658,
            "name": "El Treba"
        },
        {
            "id": 4881,
            "name": "El Triangulo"
        },
        {
            "id": 3778,
            "name": "El Trigo"
        },
        {
            "id": 4977,
            "name": "El Trio"
        },
        {
            "id": 3817,
            "name": "El Triunfo"
        },
        {
            "id": 4367,
            "name": "El Vence"
        },
        {
            "id": 2785,
            "name": "El Verano"
        },
        {
            "id": 4072,
            "name": "El Vigilante"
        },
        {
            "id": 2786,
            "name": "El Volante"
        },
        {
            "id": 3140,
            "name": "El Zorro"
        },
        {
            "id": 4092,
            "name": "Elias Romero"
        },
        {
            "id": 3633,
            "name": "Elordi"
        },
        {
            "id": 3864,
            "name": "Elvira"
        },
        {
            "id": 4622,
            "name": "Emiliano Reynoso"
        },
        {
            "id": 18269,
            "name": "Emilio Ayerza"
        },
        {
            "id": 3634,
            "name": "Emilio Bunge"
        },
        {
            "id": 3023,
            "name": "Emilio Lamarca"
        },
        {
            "id": 2594,
            "name": "Emita"
        },
        {
            "id": 2652,
            "name": "Emma"
        },
        {
            "id": 4390,
            "name": "Empalme"
        },
        {
            "id": 4791,
            "name": "Empalme Cerro Chato"
        },
        {
            "id": 3865,
            "name": "Empalme Lobos"
        },
        {
            "id": 3917,
            "name": "Empalme Magdalena"
        },
        {
            "id": 4423,
            "name": "Empalme Piedra Echada"
        },
        {
            "id": 4232,
            "name": "Empalme Querandies"
        },
        {
            "id": 2982,
            "name": "Encina"
        },
        {
            "id": 4161,
            "name": "Energia"
        },
        {
            "id": 3789,
            "name": "Enrique Fynn"
        },
        {
            "id": 3194,
            "name": "Enrique Lavalle"
        },
        {
            "id": 3224,
            "name": "Ensenada"
        },
        {
            "id": 2555,
            "name": "Epumer"
        },
        {
            "id": 21073,
            "name": "Erezcano"
        },
        {
            "id": 4424,
            "name": "Erize"
        },
        {
            "id": 2471,
            "name": "Ernestina"
        },
        {
            "id": 3225,
            "name": "Esc Nav Militar Rio Sant"
        },
        {
            "id": 4989,
            "name": "Escalada"
        },
        {
            "id": 18263,
            "name": "Escribano P Nicolas"
        },
        {
            "id": 2930,
            "name": "Escuela Agricola Don Bosco"
        },
        {
            "id": 4073,
            "name": "Escuela Agricola Rural"
        },
        {
            "id": 2472,
            "name": "Escuela Agricola Salesiana"
        },
        {
            "id": 3516,
            "name": "Escuela Agricola Salesiana"
        },
        {
            "id": 3569,
            "name": "Espada"
        },
        {
            "id": 4611,
            "name": "Espartillar"
        },
        {
            "id": 3596,
            "name": "Espartillar"
        },
        {
            "id": 18265,
            "name": "Espartillar"
        },
        {
            "id": 4233,
            "name": "Espigas"
        },
        {
            "id": 4657,
            "name": "Espora"
        },
        {
            "id": 2744,
            "name": "Espora"
        },
        {
            "id": 4834,
            "name": "Esquina De Crotto"
        },
        {
            "id": 3892,
            "name": "Est Jauregui Va Flandria"
        },
        {
            "id": 4883,
            "name": "Est San Francisco Belloq"
        },
        {
            "id": 4391,
            "name": "Establecimiento San Miguel"
        },
        {
            "id": 3517,
            "name": "Estacion Ascension"
        },
        {
            "id": 2804,
            "name": "Estacion Baradero"
        },
        {
            "id": 4882,
            "name": "Estacion Barrow"
        },
        {
            "id": 4637,
            "name": "Estacion Caiomuta"
        },
        {
            "id": 3161,
            "name": "Estacion Coronel Pringles"
        },
        {
            "id": 3518,
            "name": "Estacion General Arenales"
        },
        {
            "id": 3739,
            "name": "Estacion Gomez"
        },
        {
            "id": 2556,
            "name": "Estacion Lago Epecuen"
        },
        {
            "id": 2689,
            "name": "Estacion Lazzarino"
        },
        {
            "id": 3818,
            "name": "Estacion Lincoln"
        },
        {
            "id": 3740,
            "name": "Estacion Moreno"
        },
        {
            "id": 2509,
            "name": "Estacion Provincesl"
        },
        {
            "id": 2830,
            "name": "Estancia Chapar"
        },
        {
            "id": 3112,
            "name": "Estancia Las Gamas"
        },
        {
            "id": 18426,
            "name": "Estancia Las Isletas"
        },
        {
            "id": 3819,
            "name": "Estancia Mitikili"
        },
        {
            "id": 3820,
            "name": "Estancia San Antonio"
        },
        {
            "id": 2964,
            "name": "Estancia San Claudio"
        },
        {
            "id": 3075,
            "name": "Estancia San Rafael"
        },
        {
            "id": 2805,
            "name": "Estancia Santa Catalina"
        },
        {
            "id": 3597,
            "name": "Estancia Vieja"
        },
        {
            "id": 4319,
            "name": "Estancias"
        },
        {
            "id": 2557,
            "name": "Esteban A Gascon"
        },
        {
            "id": 2983,
            "name": "Esteban De Luca"
        },
        {
            "id": 4140,
            "name": "Esteban Diaz"
        },
        {
            "id": 4425,
            "name": "Estela"
        },
        {
            "id": 4623,
            "name": "Esther"
        },
        {
            "id": 4841,
            "name": "Estomba"
        },
        {
            "id": 2999,
            "name": "Estrella Naciente"
        },
        {
            "id": 3779,
            "name": "Estrugamou"
        },
        {
            "id": 3483,
            "name": "Etchegoyen"
        },
        {
            "id": 3484,
            "name": "Exaltacion De La Cruz"
        },
        {
            "id": 16467,
            "name": "Ezeiza"
        },
        {
            "id": 16549,
            "name": "Ezpeleta Este"
        },
        {
            "id": 16550,
            "name": "Ezpeleta Oeste"
        },
        {
            "id": 2668,
            "name": "Fair"
        },
        {
            "id": 3135,
            "name": "Faro"
        },
        {
            "id": 3570,
            "name": "Faro Querandi"
        },
        {
            "id": 3546,
            "name": "Faro San Antonio"
        },
        {
            "id": 3024,
            "name": "Faro Segunda Barrancosa"
        },
        {
            "id": 4392,
            "name": "Fatima Estacion Empalme"
        },
        {
            "id": 2558,
            "name": "Fatralo"
        },
        {
            "id": 2510,
            "name": "Fauzon"
        },
        {
            "id": 4426,
            "name": "Felipe Sola"
        },
        {
            "id": 16607,
            "name": "Fernando Marti"
        },
        {
            "id": 3519,
            "name": "Ferre"
        },
        {
            "id": 4673,
            "name": "Flamenco"
        },
        {
            "id": 16577,
            "name": "Florencio Varela"
        },
        {
            "id": 2659,
            "name": "Florentino Ameghino"
        },
        {
            "id": 21723,
            "name": "Florida"
        },
        {
            "id": 21724,
            "name": "Florida Oeste"
        },
        {
            "id": 4320,
            "name": "Fontezuela"
        },
        {
            "id": 3805,
            "name": "Fortin Acha"
        },
        {
            "id": 4842,
            "name": "Fortin Chaco"
        },
        {
            "id": 2690,
            "name": "Fortin Irene"
        },
        {
            "id": 4235,
            "name": "Fortin Lavalle"
        },
        {
            "id": 4951,
            "name": "Fortin Mercedes"
        },
        {
            "id": 3751,
            "name": "Fortin Necochea"
        },
        {
            "id": 4559,
            "name": "Fortin Olavarria"
        },
        {
            "id": 3659,
            "name": "Fortin Paunero"
        },
        {
            "id": 3689,
            "name": "Fortin Tiburcio"
        },
        {
            "id": 3025,
            "name": "Fortin Viejo"
        },
        {
            "id": 3821,
            "name": "Fortin Vigilancia"
        },
        {
            "id": 16527,
            "name": "Francisco Alvarez"
        },
        {
            "id": 4321,
            "name": "Francisco Ayerza"
        },
        {
            "id": 4712,
            "name": "Francisco Berra"
        },
        {
            "id": 18249,
            "name": "Francisco Casal"
        },
        {
            "id": 2931,
            "name": "Francisco Casal"
        },
        {
            "id": 4857,
            "name": "Francisco De Vitoria"
        },
        {
            "id": 2691,
            "name": "Francisco J Meeks"
        },
        {
            "id": 4274,
            "name": "Francisco Madero"
        },
        {
            "id": 4858,
            "name": "Francisco Magnano"
        },
        {
            "id": 2559,
            "name": "Francisco Murature"
        },
        {
            "id": 4658,
            "name": "Franklin"
        },
        {
            "id": 2511,
            "name": "French"
        },
        {
            "id": 2856,
            "name": "Frigorifico Armour"
        },
        {
            "id": 4990,
            "name": "Frigorifico Las Palmas"
        },
        {
            "id": 4843,
            "name": "Fuerte Argentino"
        },
        {
            "id": 3226,
            "name": "Fuerte Barragan"
        },
        {
            "id": 4792,
            "name": "Fulton"
        },
        {
            "id": 4713,
            "name": "Funke"
        },
        {
            "id": 4645,
            "name": "Gahan"
        },
        {
            "id": 4543,
            "name": "Galera De Torres"
        },
        {
            "id": 2512,
            "name": "Galo Llorente"
        },
        {
            "id": 3076,
            "name": "Gandara"
        },
        {
            "id": 4844,
            "name": "Garcia Del Rio"
        },
        {
            "id": 4793,
            "name": "Gardey"
        },
        {
            "id": 3236,
            "name": "Garin"
        },
        {
            "id": 3660,
            "name": "Garre"
        },
        {
            "id": 2746,
            "name": "Garro"
        },
        {
            "id": 2629,
            "name": "General Alvarado"
        },
        {
            "id": 2653,
            "name": "General Alvear"
        },
        {
            "id": 3520,
            "name": "General Arenales"
        },
        {
            "id": 3531,
            "name": "General Belgrano"
        },
        {
            "id": 21074,
            "name": "General Conesa"
        },
        {
            "id": 4835,
            "name": "General Conesa"
        },
        {
            "id": 3540,
            "name": "General Guido"
        },
        {
            "id": 3790,
            "name": "General Hornos"
        },
        {
            "id": 3752,
            "name": "General Lamadrid"
        },
        {
            "id": 3794,
            "name": "General Las Heras"
        },
        {
            "id": 3547,
            "name": "General Lavalle"
        },
        {
            "id": 3571,
            "name": "General Madariaga"
        },
        {
            "id": 18296,
            "name": "General Mansilla"
        },
        {
            "id": 2880,
            "name": "General O Brien"
        },
        {
            "id": 16536,
            "name": "General Pacheco"
        },
        {
            "id": 3608,
            "name": "General Pinto"
        },
        {
            "id": 4074,
            "name": "General Piran"
        },
        {
            "id": 4774,
            "name": "General Rivas"
        },
        {
            "id": 25773,
            "name": "General Rodriguez"
        },
        {
            "id": 27542,
            "name": "General Rojo"
        },
        {
            "id": 4427,
            "name": "General Rondeau"
        },
        {
            "id": 16565,
            "name": "General San Martin"
        },
        {
            "id": 4884,
            "name": "General Valdez"
        },
        {
            "id": 4919,
            "name": "General Viamonte"
        },
        {
            "id": 3636,
            "name": "General Villegas"
        },
        {
            "id": 2513,
            "name": "Gerente Cilley"
        },
        {
            "id": 16375,
            "name": "Gerli"
        },
        {
            "id": 16380,
            "name": "Gerli"
        },
        {
            "id": 3609,
            "name": "Germania"
        },
        {
            "id": 3141,
            "name": "Gil"
        },
        {
            "id": 4859,
            "name": "Girodias"
        },
        {
            "id": 4277,
            "name": "Girondo"
        },
        {
            "id": 26308,
            "name": "Glew"
        },
        {
            "id": 4845,
            "name": "Glorialdo"
        },
        {
            "id": 4275,
            "name": "Gnecco"
        },
        {
            "id": 3573,
            "name": "Go"
        },
        {
            "id": 3485,
            "name": "Gobernador Andonaeghi"
        },
        {
            "id": 2965,
            "name": "Gobernador Arias"
        },
        {
            "id": 4746,
            "name": "Gobernador Castro"
        },
        {
            "id": 16578,
            "name": "Gobernador Costa"
        },
        {
            "id": 2897,
            "name": "Gobernador Obligado"
        },
        {
            "id": 4624,
            "name": "Gobernador Ortiz De Rosas"
        },
        {
            "id": 2932,
            "name": "Gobernador Udaondo"
        },
        {
            "id": 2473,
            "name": "Gobernador Ugarte"
        },
        {
            "id": 3572,
            "name": "Gobos"
        },
        {
            "id": 4109,
            "name": "Goldney"
        },
        {
            "id": 2898,
            "name": "Gomez"
        },
        {
            "id": 2899,
            "name": "Gomez  De La Vega"
        },
        {
            "id": 3637,
            "name": "Gondra"
        },
        {
            "id": 16500,
            "name": "Gonzalez Catan"
        },
        {
            "id": 4560,
            "name": "Gonzalez Moreno"
        },
        {
            "id": 4141,
            "name": "Gonzalez Risos"
        },
        {
            "id": 3532,
            "name": "Gorchs"
        },
        {
            "id": 4323,
            "name": "Gornatti"
        },
        {
            "id": 3574,
            "name": "Goroso"
        },
        {
            "id": 3098,
            "name": "Gorostiaga"
        },
        {
            "id": 3000,
            "name": "Gouin"
        },
        {
            "id": 4110,
            "name": "Gowland"
        },
        {
            "id": 4612,
            "name": "Goyena"
        },
        {
            "id": 4714,
            "name": "Goyeneche"
        },
        {
            "id": 4638,
            "name": "Graciarena"
        },
        {
            "id": 2738,
            "name": "Gral Daniel Cerri"
        },
        {
            "id": 16470,
            "name": "Grand Bourg"
        },
        {
            "id": 3227,
            "name": "Grand Dock"
        },
        {
            "id": 16502,
            "name": "Gregorio De Laferrere"
        },
        {
            "id": 3053,
            "name": "Gregorio Villafa"
        },
        {
            "id": 2595,
            "name": "Grisolia"
        },
        {
            "id": 2747,
            "name": "Grumbein"
        },
        {
            "id": 3661,
            "name": "Guamini"
        },
        {
            "id": 4276,
            "name": "Guanaco"
        },
        {
            "id": 4715,
            "name": "Guardia Del Monte"
        },
        {
            "id": 24841,
            "name": "Guernica"
        },
        {
            "id": 3044,
            "name": "Guerrero"
        },
        {
            "id": 4324,
            "name": "Guerrico"
        },
        {
            "id": 4575,
            "name": "Guido Spano"
        },
        {
            "id": 16590,
            "name": "Guillermo E Hudson"
        },
        {
            "id": 3610,
            "name": "Gunther"
        },
        {
            "id": 16437,
            "name": "Haedo"
        },
        {
            "id": 3611,
            "name": "Halcey"
        },
        {
            "id": 2863,
            "name": "Hale"
        },
        {
            "id": 3521,
            "name": "Ham"
        },
        {
            "id": 4075,
            "name": "Haras 1 De Mayo"
        },
        {
            "id": 3533,
            "name": "Haras Chacabuco"
        },
        {
            "id": 4488,
            "name": "Haras Chapadmalal"
        },
        {
            "id": 3099,
            "name": "Haras El Carmen"
        },
        {
            "id": 3612,
            "name": "Haras El Catorce"
        },
        {
            "id": 4325,
            "name": "Haras El Centinela"
        },
        {
            "id": 2831,
            "name": "Haras El Cisne"
        },
        {
            "id": 3844,
            "name": "Haras El Moro"
        },
        {
            "id": 4528,
            "name": "Haras El Ombu"
        },
        {
            "id": 4593,
            "name": "Haras El Salaso"
        },
        {
            "id": 4775,
            "name": "Haras La Elvira"
        },
        {
            "id": 4162,
            "name": "Haras La Lula"
        },
        {
            "id": 3001,
            "name": "Haras Los Cardales"
        },
        {
            "id": 3845,
            "name": "Haras Nacional"
        },
        {
            "id": 2787,
            "name": "Haras Ojo Del Agua"
        },
        {
            "id": 2654,
            "name": "Haras R De La Parva"
        },
        {
            "id": 3077,
            "name": "Haras San Ignacio"
        },
        {
            "id": 4576,
            "name": "Haras San Jacinto"
        },
        {
            "id": 3822,
            "name": "Haras Trujui"
        },
        {
            "id": 4659,
            "name": "Heavy"
        },
        {
            "id": 4978,
            "name": "Henderson"
        },
        {
            "id": 3100,
            "name": "Henry Bell"
        },
        {
            "id": 2984,
            "name": "Hereford"
        },
        {
            "id": 4979,
            "name": "Herrera Vegas"
        },
        {
            "id": 4953,
            "name": "Hilario Ascasubi"
        },
        {
            "id": 3575,
            "name": "Hinojales"
        },
        {
            "id": 4236,
            "name": "Hinojo"
        },
        {
            "id": 3942,
            "name": "Hogar Mariano Ortiz Basualdo"
        },
        {
            "id": 18255,
            "name": "Hornos"
        },
        {
            "id": 2966,
            "name": "Hortensia"
        },
        {
            "id": 4163,
            "name": "Hospital Necochea"
        },
        {
            "id": 4326,
            "name": "Hospital San Antonio De La Lla"
        },
        {
            "id": 3175,
            "name": "Huanguelen"
        },
        {
            "id": 4885,
            "name": "Hueso Clavado"
        },
        {
            "id": 2474,
            "name": "Huetel"
        },
        {
            "id": 4577,
            "name": "Hunter"
        },
        {
            "id": 16431,
            "name": "Hurlingham"
        },
        {
            "id": 2985,
            "name": "Husares"
        },
        {
            "id": 3534,
            "name": "Iba"
        },
        {
            "id": 3026,
            "name": "Igarzabal"
        },
        {
            "id": 18253,
            "name": "Ignacio Correas Arana"
        },
        {
            "id": 3101,
            "name": "Indacochea"
        },
        {
            "id": 2933,
            "name": "India Muerta"
        },
        {
            "id": 3162,
            "name": "Indio Rico"
        },
        {
            "id": 4646,
            "name": "Ines Indart"
        },
        {
            "id": 16471,
            "name": "Ingeniero Adolfo Sourdeaux"
        },
        {
            "id": 16579,
            "name": "Ingeniero Allan"
        },
        {
            "id": 3613,
            "name": "Ingeniero Balbin"
        },
        {
            "id": 2986,
            "name": "Ingeniero Beaugey"
        },
        {
            "id": 2514,
            "name": "Ingeniero De Madrid"
        },
        {
            "id": 3237,
            "name": "Ingeniero Maschwitz"
        },
        {
            "id": 4747,
            "name": "Ingeniero Moneta"
        },
        {
            "id": 3054,
            "name": "Ingeniero Silveyra"
        },
        {
            "id": 4296,
            "name": "Ingeniero Thompson"
        },
        {
            "id": 26318,
            "name": "Ingeniero White"
        },
        {
            "id": 4155,
            "name": "Ingeniero Williams"
        },
        {
            "id": 4278,
            "name": "Inocencio Sosa"
        },
        {
            "id": 3576,
            "name": "Invernadas"
        },
        {
            "id": 2881,
            "name": "Irala"
        },
        {
            "id": 4794,
            "name": "Iraola"
        },
        {
            "id": 3142,
            "name": "Irene"
        },
        {
            "id": 2806,
            "name": "Ireneo Portela"
        },
        {
            "id": 3614,
            "name": "Iriarte"
        },
        {
            "id": 16503,
            "name": "Isidro Casanova"
        },
        {
            "id": 3123,
            "name": "Isla Catarelli"
        },
        {
            "id": 2807,
            "name": "Isla Los Laureles"
        },
        {
            "id": 27539,
            "name": "Isla Martin Garcia"
        },
        {
            "id": 2857,
            "name": "Isla Paulino"
        },
        {
            "id": 3228,
            "name": "Isla Santiago"
        },
        {
            "id": 4954,
            "name": "Isla Verde"
        },
        {
            "id": 2475,
            "name": "Islas"
        },
        {
            "id": 3577,
            "name": "Isondu"
        },
        {
            "id": 4237,
            "name": "Iturregui"
        },
        {
            "id": 16446,
            "name": "Ituzaingo"
        },
        {
            "id": 3027,
            "name": "Jarrilla"
        },
        {
            "id": 3905,
            "name": "Jauregui Jose Maria"
        },
        {
            "id": 2900,
            "name": "Jeppener"
        },
        {
            "id": 3727,
            "name": "Joaquin Gorina"
        },
        {
            "id": 3143,
            "name": "Jose A Guisasola"
        },
        {
            "id": 3028,
            "name": "Jose B Casas"
        },
        {
            "id": 16516,
            "name": "Jose Clemente Paz"
        },
        {
            "id": 3918,
            "name": "Jose Ferrari"
        },
        {
            "id": 16486,
            "name": "Jose Ingenieros"
        },
        {
            "id": 16566,
            "name": "Jose Leon Suarez"
        },
        {
            "id": 2655,
            "name": "Jose M Micheo"
        },
        {
            "id": 4297,
            "name": "Jose Maria Blanco"
        },
        {
            "id": 26309,
            "name": "Jose Marmol"
        },
        {
            "id": 4625,
            "name": "Jose Sojo"
        },
        {
            "id": 3029,
            "name": "Juan A Pradere"
        },
        {
            "id": 4594,
            "name": "Juan Atucha"
        },
        {
            "id": 3806,
            "name": "Juan Bautista Alberdi"
        },
        {
            "id": 4626,
            "name": "Juan Blaquier"
        },
        {
            "id": 4955,
            "name": "Juan Couste"
        },
        {
            "id": 2583,
            "name": "Juan E Barra"
        },
        {
            "id": 2864,
            "name": "Juan F Ibarra"
        },
        {
            "id": 4327,
            "name": "Juan G Pujol"
        },
        {
            "id": 4143,
            "name": "Juan Jose Almeyra"
        },
        {
            "id": 4279,
            "name": "Juan Jose Paso"
        },
        {
            "id": 16591,
            "name": "Juan Maria Gutierrez"
        },
        {
            "id": 4164,
            "name": "Juan N Fernandez"
        },
        {
            "id": 4595,
            "name": "Juan Tronconi"
        },
        {
            "id": 2560,
            "name": "Juan V Cilley"
        },
        {
            "id": 2476,
            "name": "Juan Vela"
        },
        {
            "id": 18254,
            "name": "Juan Vucetich Ex Dr R Levene"
        },
        {
            "id": 4328,
            "name": "Juana A De La Pe"
        },
        {
            "id": 3578,
            "name": "Juancho"
        },
        {
            "id": 3919,
            "name": "Julio Arditi"
        },
        {
            "id": 26285,
            "name": "Junin"
        },
        {
            "id": 3002,
            "name": "Kenny"
        },
        {
            "id": 3486,
            "name": "Kilometro 102"
        },
        {
            "id": 3920,
            "name": "Kilometro 103"
        },
        {
            "id": 4660,
            "name": "Kilometro 108"
        },
        {
            "id": 2749,
            "name": "Kilometro 11"
        },
        {
            "id": 3866,
            "name": "Kilometro 112"
        },
        {
            "id": 4144,
            "name": "Kilometro 116"
        },
        {
            "id": 4145,
            "name": "Kilometro 117"
        },
        {
            "id": 4661,
            "name": "Kilometro 125"
        },
        {
            "id": 18308,
            "name": "Kilometro 125"
        },
        {
            "id": 4716,
            "name": "Kilometro 128"
        },
        {
            "id": 3535,
            "name": "Kilometro 146"
        },
        {
            "id": 4748,
            "name": "Kilometro 172"
        },
        {
            "id": 4749,
            "name": "Kilometro 184"
        },
        {
            "id": 4647,
            "name": "Kilometro 187"
        },
        {
            "id": 3210,
            "name": "Kilometro 212"
        },
        {
            "id": 4920,
            "name": "Kilometro 282"
        },
        {
            "id": 3823,
            "name": "Kilometro 321"
        },
        {
            "id": 3824,
            "name": "Kilometro 322"
        },
        {
            "id": 4238,
            "name": "Kilometro 333"
        },
        {
            "id": 3825,
            "name": "Kilometro 352"
        },
        {
            "id": 3826,
            "name": "Kilometro 356"
        },
        {
            "id": 4578,
            "name": "Kilometro 36"
        },
        {
            "id": 2987,
            "name": "Kilometro 386"
        },
        {
            "id": 2988,
            "name": "Kilometro 393"
        },
        {
            "id": 2832,
            "name": "Kilometro 404"
        },
        {
            "id": 2692,
            "name": "Kilometro 433"
        },
        {
            "id": 2901,
            "name": "Kilometro 44"
        },
        {
            "id": 3846,
            "name": "Kilometro 440"
        },
        {
            "id": 4393,
            "name": "Kilometro 45"
        },
        {
            "id": 4093,
            "name": "Kilometro 45"
        },
        {
            "id": 4094,
            "name": "Kilometro 53"
        },
        {
            "id": 3144,
            "name": "Kilometro 563"
        },
        {
            "id": 2902,
            "name": "Kilometro 58"
        },
        {
            "id": 2934,
            "name": "Kilometro 59"
        },
        {
            "id": 4394,
            "name": "Kilometro 61"
        },
        {
            "id": 2750,
            "name": "Kilometro 652"
        },
        {
            "id": 2751,
            "name": "Kilometro 666"
        },
        {
            "id": 4956,
            "name": "Kilometro 697"
        },
        {
            "id": 3598,
            "name": "Kilometro 70"
        },
        {
            "id": 3791,
            "name": "Kilometro 77"
        },
        {
            "id": 3792,
            "name": "Kilometro 79"
        },
        {
            "id": 2903,
            "name": "Kilometro 82"
        },
        {
            "id": 4146,
            "name": "Kilometro 83"
        },
        {
            "id": 3867,
            "name": "Kilometro 88"
        },
        {
            "id": 2922,
            "name": "Kilometro 88"
        },
        {
            "id": 4717,
            "name": "Kilometro 88"
        },
        {
            "id": 2935,
            "name": "Kilometro 88"
        },
        {
            "id": 2752,
            "name": "Kilometro 9 Sud"
        },
        {
            "id": 4147,
            "name": "Kilometro 90"
        },
        {
            "id": 3921,
            "name": "Kilometro 92"
        },
        {
            "id": 3522,
            "name": "Kilometro 95"
        },
        {
            "id": 3163,
            "name": "Krabbe"
        },
        {
            "id": 2515,
            "name": "La Adela"
        },
        {
            "id": 3868,
            "name": "La Adelaida"
        },
        {
            "id": 3078,
            "name": "La Alameda"
        },
        {
            "id": 4368,
            "name": "La Alcira"
        },
        {
            "id": 3079,
            "name": "La Amalia"
        },
        {
            "id": 3080,
            "name": "La Amistad"
        },
        {
            "id": 3943,
            "name": "La Amorilla"
        },
        {
            "id": 3523,
            "name": "La Angelita"
        },
        {
            "id": 4771,
            "name": "La Argentina"
        },
        {
            "id": 3195,
            "name": "La Armonia"
        },
        {
            "id": 3145,
            "name": "La Aurora"
        },
        {
            "id": 4795,
            "name": "La Aurora"
        },
        {
            "id": 2516,
            "name": "La Aurora"
        },
        {
            "id": 4796,
            "name": "La Azotea"
        },
        {
            "id": 3081,
            "name": "La Azotea Grande"
        },
        {
            "id": 4797,
            "name": "La Azucena"
        },
        {
            "id": 2858,
            "name": "La Balandra"
        },
        {
            "id": 4684,
            "name": "La Ballena"
        },
        {
            "id": 2630,
            "name": "La Ballenera"
        },
        {
            "id": 4627,
            "name": "La Barrancosa"
        },
        {
            "id": 4579,
            "name": "La Beba"
        },
        {
            "id": 4957,
            "name": "La Blanca"
        },
        {
            "id": 4148,
            "name": "La Blanqueada"
        },
        {
            "id": 4750,
            "name": "La Bolsa"
        },
        {
            "id": 2788,
            "name": "La Brava"
        },
        {
            "id": 4751,
            "name": "La Buana Moza"
        },
        {
            "id": 2833,
            "name": "La Calera"
        },
        {
            "id": 18278,
            "name": "La Caleta"
        },
        {
            "id": 3055,
            "name": "La California Argentina"
        },
        {
            "id": 4628,
            "name": "La Campana"
        },
        {
            "id": 3102,
            "name": "La Carlota"
        },
        {
            "id": 4860,
            "name": "La Carreta"
        },
        {
            "id": 4561,
            "name": "La Cautiva"
        },
        {
            "id": 4958,
            "name": "La Celia"
        },
        {
            "id": 4428,
            "name": "La Celina"
        },
        {
            "id": 3003,
            "name": "La Central"
        },
        {
            "id": 3793,
            "name": "La Choza"
        },
        {
            "id": 2693,
            "name": "La Chumbeada"
        },
        {
            "id": 3536,
            "name": "La Chumbeada"
        },
        {
            "id": 3753,
            "name": "La Colina"
        },
        {
            "id": 2631,
            "name": "La Colmena"
        },
        {
            "id": 3944,
            "name": "La Colorada"
        },
        {
            "id": 2694,
            "name": "La Colorada"
        },
        {
            "id": 4429,
            "name": "La Colorada Chica"
        },
        {
            "id": 2669,
            "name": "La Constancia"
        },
        {
            "id": 3196,
            "name": "La Copeta"
        },
        {
            "id": 4329,
            "name": "La Cora"
        },
        {
            "id": 18260,
            "name": "La Corina"
        },
        {
            "id": 3045,
            "name": "La Corinco"
        },
        {
            "id": 2936,
            "name": "La Costa"
        },
        {
            "id": 3046,
            "name": "La Costa"
        },
        {
            "id": 4280,
            "name": "La Cotorra"
        },
        {
            "id": 4921,
            "name": "La Delfina"
        },
        {
            "id": 2815,
            "name": "La Delia"
        },
        {
            "id": 4369,
            "name": "La Despierta"
        },
        {
            "id": 2967,
            "name": "La Dorita"
        },
        {
            "id": 3103,
            "name": "La Dormilona"
        },
        {
            "id": 4165,
            "name": "La Dulce"
        },
        {
            "id": 2632,
            "name": "La Elma"
        },
        {
            "id": 4529,
            "name": "La Esperanza"
        },
        {
            "id": 3537,
            "name": "La Esperanza"
        },
        {
            "id": 2789,
            "name": "La Esperanza"
        },
        {
            "id": 3579,
            "name": "La Esperanza Gral Madariaga"
        },
        {
            "id": 3780,
            "name": "La Esperanza Rosas Las Flores"
        },
        {
            "id": 3211,
            "name": "La Estrella"
        },
        {
            "id": 4239,
            "name": "La Estrella"
        },
        {
            "id": 4430,
            "name": "La Eva"
        },
        {
            "id": 4685,
            "name": "La Feliciana"
        },
        {
            "id": 2561,
            "name": "La Florida"
        },
        {
            "id": 4370,
            "name": "La Florida"
        },
        {
            "id": 4662,
            "name": "La Florida"
        },
        {
            "id": 25774,
            "name": "La Fraternidad"
        },
        {
            "id": 2937,
            "name": "La Garita"
        },
        {
            "id": 4686,
            "name": "La Gaviota"
        },
        {
            "id": 4959,
            "name": "La Gleva"
        },
        {
            "id": 2477,
            "name": "La Gloria"
        },
        {
            "id": 3238,
            "name": "La Gracielita"
        },
        {
            "id": 3662,
            "name": "La Gregoria"
        },
        {
            "id": 3663,
            "name": "La Herminia"
        },
        {
            "id": 2989,
            "name": "La Higuera"
        },
        {
            "id": 3082,
            "name": "La Horqueta"
        },
        {
            "id": 4886,
            "name": "La Horqueta"
        },
        {
            "id": 2923,
            "name": "La Horqueta"
        },
        {
            "id": 3524,
            "name": "La Huayqueria"
        },
        {
            "id": 4648,
            "name": "La Invencible"
        },
        {
            "id": 4816,
            "name": "La Isabel"
        },
        {
            "id": 3197,
            "name": "La Larga"
        },
        {
            "id": 4371,
            "name": "La Larga Nueva"
        },
        {
            "id": 3487,
            "name": "La Lata"
        },
        {
            "id": 27660,
            "name": "La Leonor"
        },
        {
            "id": 2882,
            "name": "La Limpia"
        },
        {
            "id": 3893,
            "name": "La Loma"
        },
        {
            "id": 2633,
            "name": "La Lucia"
        },
        {
            "id": 21725,
            "name": "La Lucila"
        },
        {
            "id": 3548,
            "name": "La Lucila Del Mar"
        },
        {
            "id": 2953,
            "name": "La Luisa"
        },
        {
            "id": 3146,
            "name": "La Luna"
        },
        {
            "id": 4372,
            "name": "La Luz"
        },
        {
            "id": 2634,
            "name": "La Madrecita"
        },
        {
            "id": 2695,
            "name": "La Mantequeria"
        },
        {
            "id": 3198,
            "name": "La Manuela"
        },
        {
            "id": 4629,
            "name": "La Margarita"
        },
        {
            "id": 4330,
            "name": "La Margarita"
        },
        {
            "id": 4861,
            "name": "La Margarita"
        },
        {
            "id": 2883,
            "name": "La Maria"
        },
        {
            "id": 3124,
            "name": "La Martina"
        },
        {
            "id": 4373,
            "name": "La Mascota"
        },
        {
            "id": 4960,
            "name": "La Mascota"
        },
        {
            "id": 3549,
            "name": "La Mascota"
        },
        {
            "id": 4752,
            "name": "La Matilde"
        },
        {
            "id": 4580,
            "name": "La Nacion"
        },
        {
            "id": 4240,
            "name": "La Narcisa"
        },
        {
            "id": 4241,
            "name": "La Navarra"
        },
        {
            "id": 4166,
            "name": "La Negra"
        },
        {
            "id": 2816,
            "name": "La Nelida"
        },
        {
            "id": 3664,
            "name": "La Nevada"
        },
        {
            "id": 2517,
            "name": "La Ni"
        },
        {
            "id": 2938,
            "name": "La Noria"
        },
        {
            "id": 4798,
            "name": "La Numancia"
        },
        {
            "id": 2834,
            "name": "La Nutria"
        },
        {
            "id": 3691,
            "name": "La Oriental"
        },
        {
            "id": 2562,
            "name": "La Pala"
        },
        {
            "id": 3847,
            "name": "La Palma"
        },
        {
            "id": 4242,
            "name": "La Palmira"
        },
        {
            "id": 2656,
            "name": "La Pampa"
        },
        {
            "id": 2790,
            "name": "La Para"
        },
        {
            "id": 18352,
            "name": "La Pastora"
        },
        {
            "id": 4799,
            "name": "La Pastora"
        },
        {
            "id": 4596,
            "name": "La Paz"
        },
        {
            "id": 4597,
            "name": "La Paz Chica"
        },
        {
            "id": 4491,
            "name": "La Peregrina"
        },
        {
            "id": 2865,
            "name": "La Perla"
        },
        {
            "id": 4991,
            "name": "La Pesqueria"
        },
        {
            "id": 4374,
            "name": "La Piedra"
        },
        {
            "id": 3525,
            "name": "La Pinta"
        },
        {
            "id": 26324,
            "name": "La Plata"
        },
        {
            "id": 3848,
            "name": "La Playa"
        },
        {
            "id": 4431,
            "name": "La Pochola"
        },
        {
            "id": 3869,
            "name": "La Porte"
        },
        {
            "id": 3781,
            "name": "La Porte"
        },
        {
            "id": 4862,
            "name": "La Porte"
        },
        {
            "id": 2904,
            "name": "La Posada"
        },
        {
            "id": 3212,
            "name": "La Posta"
        },
        {
            "id": 27851,
            "name": "La Posta"
        },
        {
            "id": 3827,
            "name": "La Pradera"
        },
        {
            "id": 3922,
            "name": "La Primavera"
        },
        {
            "id": 3176,
            "name": "La Primavera"
        },
        {
            "id": 4167,
            "name": "La Primitiva"
        },
        {
            "id": 3213,
            "name": "La Proteccion"
        },
        {
            "id": 2696,
            "name": "La Protegida"
        },
        {
            "id": 4243,
            "name": "La Protegida"
        },
        {
            "id": 4817,
            "name": "La Protegida"
        },
        {
            "id": 4244,
            "name": "La Providencia"
        },
        {
            "id": 4530,
            "name": "La Querencia"
        },
        {
            "id": 2478,
            "name": "La Rabia"
        },
        {
            "id": 4630,
            "name": "La Razon"
        },
        {
            "id": 3084,
            "name": "La Reforma"
        },
        {
            "id": 4375,
            "name": "La Reforma"
        },
        {
            "id": 2635,
            "name": "La Reforma"
        },
        {
            "id": 4598,
            "name": "La Reforma"
        },
        {
            "id": 16528,
            "name": "La Reja"
        },
        {
            "id": 3164,
            "name": "La Reserva"
        },
        {
            "id": 3104,
            "name": "La Rica"
        },
        {
            "id": 4599,
            "name": "La Rinconada"
        },
        {
            "id": 3488,
            "name": "La Rosada"
        },
        {
            "id": 4432,
            "name": "La Rosalia"
        },
        {
            "id": 2479,
            "name": "La Rubia"
        },
        {
            "id": 16504,
            "name": "La Salada"
        },
        {
            "id": 4776,
            "name": "La Sara"
        },
        {
            "id": 2791,
            "name": "La Sara"
        },
        {
            "id": 4331,
            "name": "La Sarita"
        },
        {
            "id": 4613,
            "name": "La Saudade"
        },
        {
            "id": 3147,
            "name": "La Sirena"
        },
        {
            "id": 3148,
            "name": "La Soberana"
        },
        {
            "id": 2968,
            "name": "La Sofia"
        },
        {
            "id": 4433,
            "name": "La Sombra"
        },
        {
            "id": 4887,
            "name": "La Sortija"
        },
        {
            "id": 3615,
            "name": "La Suiza"
        },
        {
            "id": 3550,
            "name": "La Tablada"
        },
        {
            "id": 3923,
            "name": "La Talina"
        },
        {
            "id": 4888,
            "name": "La Tigra"
        },
        {
            "id": 4076,
            "name": "La Tobiana"
        },
        {
            "id": 4245,
            "name": "La Tomasa"
        },
        {
            "id": 2866,
            "name": "La Torrecita"
        },
        {
            "id": 4922,
            "name": "La Tribu"
        },
        {
            "id": 2480,
            "name": "La Tribu"
        },
        {
            "id": 3526,
            "name": "La Trinidad"
        },
        {
            "id": 16468,
            "name": "La Union"
        },
        {
            "id": 27787,
            "name": "La Union"
        },
        {
            "id": 4111,
            "name": "La Valerosa"
        },
        {
            "id": 4332,
            "name": "La Vanguardia"
        },
        {
            "id": 4434,
            "name": "La Vascongada"
        },
        {
            "id": 4112,
            "name": "La Verde"
        },
        {
            "id": 27784,
            "name": "La Verde"
        },
        {
            "id": 3538,
            "name": "La Verde"
        },
        {
            "id": 4376,
            "name": "La Victoria"
        },
        {
            "id": 3551,
            "name": "La Victoria"
        },
        {
            "id": 4149,
            "name": "La Victoria Desvio"
        },
        {
            "id": 4333,
            "name": "La Violeta"
        },
        {
            "id": 3125,
            "name": "La Virginia"
        },
        {
            "id": 2753,
            "name": "La Viticola"
        },
        {
            "id": 2518,
            "name": "La Yesca"
        },
        {
            "id": 4863,
            "name": "La Zanja"
        },
        {
            "id": 3828,
            "name": "La Zarate"
        },
        {
            "id": 3541,
            "name": "Labarden"
        },
        {
            "id": 2563,
            "name": "Lago Epecuen"
        },
        {
            "id": 3665,
            "name": "Laguna Alsina"
        },
        {
            "id": 2792,
            "name": "Laguna Brava"
        },
        {
            "id": 4961,
            "name": "Laguna Chasico"
        },
        {
            "id": 3692,
            "name": "Laguna De Gomez"
        },
        {
            "id": 3870,
            "name": "Laguna De Lobos"
        },
        {
            "id": 4492,
            "name": "Laguna De Los Padres"
        },
        {
            "id": 2519,
            "name": "Laguna Del Cura"
        },
        {
            "id": 3666,
            "name": "Laguna Del Monte"
        },
        {
            "id": 4493,
            "name": "Laguna Del Soldado"
        },
        {
            "id": 2481,
            "name": "Laguna Las Mulitas"
        },
        {
            "id": 2697,
            "name": "Laguna Medina"
        },
        {
            "id": 4864,
            "name": "Laguna Redonda"
        },
        {
            "id": 2670,
            "name": "Langueyu"
        },
        {
            "id": 16381,
            "name": "Lanus"
        },
        {
            "id": 3693,
            "name": "Laplacette"
        },
        {
            "id": 3767,
            "name": "Laprida"
        },
        {
            "id": 4281,
            "name": "Larramendy"
        },
        {
            "id": 2596,
            "name": "Larrea"
        },
        {
            "id": 3165,
            "name": "Lartigau"
        },
        {
            "id": 4377,
            "name": "Las Achiras"
        },
        {
            "id": 3945,
            "name": "Las Armas"
        },
        {
            "id": 4531,
            "name": "Las Bahamas"
        },
        {
            "id": 3754,
            "name": "Las Bandurrias"
        },
        {
            "id": 3085,
            "name": "Las Bruscas"
        },
        {
            "id": 3871,
            "name": "Las Chacras"
        },
        {
            "id": 4378,
            "name": "Las Chilcas"
        },
        {
            "id": 4077,
            "name": "Las Chilcas"
        },
        {
            "id": 2698,
            "name": "Las Cortaderas"
        },
        {
            "id": 3030,
            "name": "Las Cortaderas"
        },
        {
            "id": 3667,
            "name": "Las Cuatro Hermanas"
        },
        {
            "id": 4649,
            "name": "Las Cuatro Puertas"
        },
        {
            "id": 4962,
            "name": "Las Escobas"
        },
        {
            "id": 4753,
            "name": "Las Flores"
        },
        {
            "id": 3782,
            "name": "Las Flores"
        },
        {
            "id": 4865,
            "name": "Las Guasquitas"
        },
        {
            "id": 3768,
            "name": "Las Hermanas"
        },
        {
            "id": 4963,
            "name": "Las Isletas"
        },
        {
            "id": 4282,
            "name": "Las Juanitas"
        },
        {
            "id": 2636,
            "name": "Las Lomas"
        },
        {
            "id": 25775,
            "name": "Las Malvinas"
        },
        {
            "id": 4150,
            "name": "Las Marianas"
        },
        {
            "id": 3755,
            "name": "Las Martinetas"
        },
        {
            "id": 3668,
            "name": "Las Mercedes"
        },
        {
            "id": 3166,
            "name": "Las Mostazas"
        },
        {
            "id": 3086,
            "name": "Las Mulas"
        },
        {
            "id": 2520,
            "name": "Las Negras"
        },
        {
            "id": 2699,
            "name": "Las Nieves"
        },
        {
            "id": 3849,
            "name": "Las Nutrias"
        },
        {
            "id": 3149,
            "name": "Las Oscuras"
        },
        {
            "id": 27782,
            "name": "Las Pajas"
        },
        {
            "id": 4992,
            "name": "Las Palmas"
        },
        {
            "id": 3694,
            "name": "Las Parvas"
        },
        {
            "id": 2637,
            "name": "Las Piedritas"
        },
        {
            "id": 4246,
            "name": "Las Piedritas"
        },
        {
            "id": 2521,
            "name": "Las Rosas"
        },
        {
            "id": 4581,
            "name": "Las Saladas"
        },
        {
            "id": 2793,
            "name": "Las Suizas"
        },
        {
            "id": 2671,
            "name": "Las Sultanas"
        },
        {
            "id": 18484,
            "name": "Las Tahonas"
        },
        {
            "id": 3552,
            "name": "Las Toninas"
        },
        {
            "id": 4379,
            "name": "Las Tortugas"
        },
        {
            "id": 3829,
            "name": "Las Toscas"
        },
        {
            "id": 3669,
            "name": "Las Tres Flores"
        },
        {
            "id": 4889,
            "name": "Las Vaquerias"
        },
        {
            "id": 3214,
            "name": "Las Viboras"
        },
        {
            "id": 3756,
            "name": "Lastra"
        },
        {
            "id": 2700,
            "name": "Lazzarino"
        },
        {
            "id": 3807,
            "name": "Leandro N Alem"
        },
        {
            "id": 3087,
            "name": "Legaristi"
        },
        {
            "id": 4866,
            "name": "Lertora"
        },
        {
            "id": 2564,
            "name": "Leubuco"
        },
        {
            "id": 3088,
            "name": "Lezama"
        },
        {
            "id": 3894,
            "name": "Lezica Y Torrezuri"
        },
        {
            "id": 3757,
            "name": "Libano"
        },
        {
            "id": 16570,
            "name": "Libertad"
        },
        {
            "id": 3089,
            "name": "Libres Del Sud"
        },
        {
            "id": 3850,
            "name": "Licenciado Matienzo"
        },
        {
            "id": 4334,
            "name": "Lierra Adjemiro"
        },
        {
            "id": 4993,
            "name": "Lima"
        },
        {
            "id": 4890,
            "name": "Lin Calel"
        },
        {
            "id": 3830,
            "name": "Lincoln"
        },
        {
            "id": 3741,
            "name": "Lisandro Olmos Etcheverry"
        },
        {
            "id": 16449,
            "name": "Llavallol"
        },
        {
            "id": 3851,
            "name": "Loberia"
        },
        {
            "id": 3872,
            "name": "Lobos"
        },
        {
            "id": 3215,
            "name": "Loma De Salomon"
        },
        {
            "id": 4687,
            "name": "Loma Del Indio"
        },
        {
            "id": 16487,
            "name": "Loma Hermosa"
        },
        {
            "id": 4247,
            "name": "Loma Negra"
        },
        {
            "id": 4544,
            "name": "Loma Negra"
        },
        {
            "id": 4545,
            "name": "Loma Partida"
        },
        {
            "id": 3599,
            "name": "Loma Verde"
        },
        {
            "id": 3239,
            "name": "Loma Verde"
        },
        {
            "id": 16450,
            "name": "Lomas De Zamora"
        },
        {
            "id": 16505,
            "name": "Lomas Del Mirador"
        },
        {
            "id": 2925,
            "name": "Lomas Del Rio Lujan"
        },
        {
            "id": 26310,
            "name": "Longchamps"
        },
        {
            "id": 2835,
            "name": "Lopez"
        },
        {
            "id": 4435,
            "name": "Lopez Lecube"
        },
        {
            "id": 4335,
            "name": "Lopez Molinari"
        },
        {
            "id": 3831,
            "name": "Los Altos"
        },
        {
            "id": 3056,
            "name": "Los Angeles"
        },
        {
            "id": 2939,
            "name": "Los Aromos"
        },
        {
            "id": 4923,
            "name": "Los Bosques"
        },
        {
            "id": 3638,
            "name": "Los Caldenes"
        },
        {
            "id": 3616,
            "name": "Los Callejones"
        },
        {
            "id": 3489,
            "name": "Los Cardales"
        },
        {
            "id": 2794,
            "name": "Los Cardos"
        },
        {
            "id": 4718,
            "name": "Los Cerrillos"
        },
        {
            "id": 3852,
            "name": "Los Cerros"
        },
        {
            "id": 2990,
            "name": "Los Cha"
        },
        {
            "id": 27786,
            "name": "Los Chucaros"
        },
        {
            "id": 3199,
            "name": "Los Coloniales"
        },
        {
            "id": 2657,
            "name": "Los Cuatro Caminos"
        },
        {
            "id": 4719,
            "name": "Los Eucaliptos"
        },
        {
            "id": 3742,
            "name": "Los Eucaliptus Casco Urbano"
        },
        {
            "id": 2565,
            "name": "Los Gauchos"
        },
        {
            "id": 4924,
            "name": "Los Huesos"
        },
        {
            "id": 2991,
            "name": "Los Indios"
        },
        {
            "id": 4582,
            "name": "Los Indios"
        },
        {
            "id": 3639,
            "name": "Los Laureles"
        },
        {
            "id": 4800,
            "name": "Los Leones"
        },
        {
            "id": 3600,
            "name": "Los Merinos"
        },
        {
            "id": 4688,
            "name": "Los Molles"
        },
        {
            "id": 4495,
            "name": "Los Ortiz"
        },
        {
            "id": 2638,
            "name": "Los Patos"
        },
        {
            "id": 3769,
            "name": "Los Pinos"
        },
        {
            "id": 2795,
            "name": "Los Pinos"
        },
        {
            "id": 16472,
            "name": "Los Polvorines"
        },
        {
            "id": 3031,
            "name": "Los Pozos"
        },
        {
            "id": 3925,
            "name": "Los Santos Viejos"
        },
        {
            "id": 2859,
            "name": "Los Talas"
        },
        {
            "id": 4925,
            "name": "Los Toldos"
        },
        {
            "id": 3200,
            "name": "Louge"
        },
        {
            "id": 3795,
            "name": "Lozano"
        },
        {
            "id": 2482,
            "name": "Lucas Monteverde"
        },
        {
            "id": 18485,
            "name": "Luis Chico"
        },
        {
            "id": 5052,
            "name": "Luis Guillon"
        },
        {
            "id": 26316,
            "name": "Lujan"
        },
        {
            "id": 4168,
            "name": "Lumb"
        },
        {
            "id": 3201,
            "name": "Luro"
        },
        {
            "id": 3580,
            "name": "Macedo"
        },
        {
            "id": 4546,
            "name": "Magallanes"
        },
        {
            "id": 4283,
            "name": "Magdala"
        },
        {
            "id": 3927,
            "name": "Magdalena"
        },
        {
            "id": 4336,
            "name": "Maguirre"
        },
        {
            "id": 3946,
            "name": "Maipu"
        },
        {
            "id": 2566,
            "name": "Malabia"
        },
        {
            "id": 3853,
            "name": "Malecon Gardella"
        },
        {
            "id": 26311,
            "name": "Malvinas Argentinas"
        },
        {
            "id": 2483,
            "name": "Mamaguita"
        },
        {
            "id": 4337,
            "name": "Manantiales"
        },
        {
            "id": 4338,
            "name": "Manantiales Grandes"
        },
        {
            "id": 4395,
            "name": "Manuel Alberti"
        },
        {
            "id": 3743,
            "name": "Manuel B Gonnet"
        },
        {
            "id": 4113,
            "name": "Manuel Jose Garcia"
        },
        {
            "id": 4339,
            "name": "Manuel Ocampo"
        },
        {
            "id": 4396,
            "name": "Manzanares"
        },
        {
            "id": 4340,
            "name": "Manzo Y Ni"
        },
        {
            "id": 4397,
            "name": "Manzone"
        },
        {
            "id": 3854,
            "name": "Maori"
        },
        {
            "id": 4248,
            "name": "Mapis"
        },
        {
            "id": 3240,
            "name": "Maquinista F Savio"
        },
        {
            "id": 3581,
            "name": "Mar Azul"
        },
        {
            "id": 4078,
            "name": "Mar Chiquita"
        },
        {
            "id": 3553,
            "name": "Mar De Ajo"
        },
        {
            "id": 18279,
            "name": "Mar De Cobo"
        },
        {
            "id": 3582,
            "name": "Mar De Las Pampas"
        },
        {
            "id": 20900,
            "name": "Mar Del Plata"
        },
        {
            "id": 2639,
            "name": "Mar Del Sud"
        },
        {
            "id": 3554,
            "name": "Mar Del Tuyu"
        },
        {
            "id": 4650,
            "name": "Marcelino Ugarte"
        },
        {
            "id": 27527,
            "name": "Marcos Paz"
        },
        {
            "id": 4096,
            "name": "Marcos Paz B Bernasconi"
        },
        {
            "id": 4097,
            "name": "Marcos Paz B El Martillo"
        },
        {
            "id": 4098,
            "name": "Marcos Paz B El Moro"
        },
        {
            "id": 4099,
            "name": "Marcos Paz B El Zorzal"
        },
        {
            "id": 4100,
            "name": "Marcos Paz B La Lonja"
        },
        {
            "id": 4101,
            "name": "Marcos Paz B La Milagrosa"
        },
        {
            "id": 4102,
            "name": "Marcos Paz B Martin Fierro"
        },
        {
            "id": 4103,
            "name": "Marcos Paz B Urioste"
        },
        {
            "id": 4867,
            "name": "Mari Lauquen"
        },
        {
            "id": 4801,
            "name": "Maria Ignacia"
        },
        {
            "id": 4980,
            "name": "Maria Lucila"
        },
        {
            "id": 4298,
            "name": "Maria P Moreno"
        },
        {
            "id": 16571,
            "name": "Mariano Acosta"
        },
        {
            "id": 4342,
            "name": "Mariano Benitez"
        },
        {
            "id": 4341,
            "name": "Mariano H Alfonzo"
        },
        {
            "id": 2836,
            "name": "Mariano Roldan"
        },
        {
            "id": 2871,
            "name": "Mariano Unzue"
        },
        {
            "id": 3896,
            "name": "Mariscal Sucre"
        },
        {
            "id": 2484,
            "name": "Martin Berraondo"
        },
        {
            "id": 16488,
            "name": "Martin Coronado"
        },
        {
            "id": 4868,
            "name": "Martin Fierro"
        },
        {
            "id": 2701,
            "name": "Martin Fierro"
        },
        {
            "id": 4698,
            "name": "Martinez"
        },
        {
            "id": 2992,
            "name": "Marucha"
        },
        {
            "id": 3202,
            "name": "Masurel"
        },
        {
            "id": 3241,
            "name": "Matheu"
        },
        {
            "id": 3203,
            "name": "Mauras"
        },
        {
            "id": 2969,
            "name": "Mauricio Hirsch"
        },
        {
            "id": 2884,
            "name": "Maximo Fernandez"
        },
        {
            "id": 2940,
            "name": "Maximo Paz"
        },
        {
            "id": 4964,
            "name": "Mayor Buratovich"
        },
        {
            "id": 3617,
            "name": "Mayor Jose Orellano"
        },
        {
            "id": 2567,
            "name": "Maza"
        },
        {
            "id": 2885,
            "name": "Mecha"
        },
        {
            "id": 2886,
            "name": "Mechita"
        },
        {
            "id": 2640,
            "name": "Mechongue"
        },
        {
            "id": 3583,
            "name": "Medaland"
        },
        {
            "id": 4169,
            "name": "Medano Blanco"
        },
        {
            "id": 4965,
            "name": "Medanos"
        },
        {
            "id": 3744,
            "name": "Melchor Romero"
        },
        {
            "id": 3057,
            "name": "Membrillar"
        },
        {
            "id": 16506,
            "name": "Mercado Central"
        },
        {
            "id": 27535,
            "name": "Mercedes"
        },
        {
            "id": 4562,
            "name": "Meridiano Vo"
        },
        {
            "id": 16572,
            "name": "Merlo"
        },
        {
            "id": 4891,
            "name": "Micaela Cascallares"
        },
        {
            "id": 26312,
            "name": "Ministro Rivadavia"
        },
        {
            "id": 4563,
            "name": "Mira Pampa"
        },
        {
            "id": 2641,
            "name": "Miramar"
        },
        {
            "id": 2702,
            "name": "Miramonte"
        },
        {
            "id": 4547,
            "name": "Miranda"
        },
        {
            "id": 2970,
            "name": "Moctezuma"
        },
        {
            "id": 2837,
            "name": "Molino Galileo"
        },
        {
            "id": 4151,
            "name": "Moll"
        },
        {
            "id": 3090,
            "name": "Monasterio"
        },
        {
            "id": 4284,
            "name": "Mones Cazon"
        },
        {
            "id": 4651,
            "name": "Monroe"
        },
        {
            "id": 3947,
            "name": "Monsalvo"
        },
        {
            "id": 3764,
            "name": "Monte Chingolo"
        },
        {
            "id": 2838,
            "name": "Monte Crespo"
        },
        {
            "id": 2568,
            "name": "Monte Fiore"
        },
        {
            "id": 16377,
            "name": "Monte Grande"
        },
        {
            "id": 4126,
            "name": "Monte Hermoso"
        },
        {
            "id": 3928,
            "name": "Monte Veloz"
        },
        {
            "id": 3584,
            "name": "Montecarlo"
        },
        {
            "id": 4966,
            "name": "Montes De Oca"
        },
        {
            "id": 3640,
            "name": "Moores"
        },
        {
            "id": 2522,
            "name": "Morea"
        },
        {
            "id": 16529,
            "name": "Moreno"
        },
        {
            "id": 16438,
            "name": "Moron"
        },
        {
            "id": 3695,
            "name": "Morse"
        },
        {
            "id": 3204,
            "name": "Mouras"
        },
        {
            "id": 16524,
            "name": "Mu"
        },
        {
            "id": 4249,
            "name": "Mu"
        },
        {
            "id": 2523,
            "name": "Mulcahy"
        },
        {
            "id": 21726,
            "name": "Munro"
        },
        {
            "id": 4343,
            "name": "Mutti"
        },
        {
            "id": 4079,
            "name": "Nahuel Ruca"
        },
        {
            "id": 2796,
            "name": "Napaleofu"
        },
        {
            "id": 4152,
            "name": "Navarro"
        },
        {
            "id": 21493,
            "name": "Necochea"
        },
        {
            "id": 2993,
            "name": "Necol Estacion Fcgm"
        },
        {
            "id": 3539,
            "name": "Newton"
        },
        {
            "id": 4171,
            "name": "Nicanor Olivera"
        },
        {
            "id": 3150,
            "name": "Nicolas Descalzi"
        },
        {
            "id": 4967,
            "name": "Nicolas Levalle"
        },
        {
            "id": 2703,
            "name": "Nieves"
        },
        {
            "id": 2485,
            "name": "Norberto De La Riestra"
        },
        {
            "id": 27602,
            "name": "Nordelta"
        },
        {
            "id": 2524,
            "name": "Norumbega"
        },
        {
            "id": 3555,
            "name": "Nueva Atlantis"
        },
        {
            "id": 2868,
            "name": "Nueva Espa"
        },
        {
            "id": 3745,
            "name": "Nueva Hermosura"
        },
        {
            "id": 4285,
            "name": "Nueva Plata"
        },
        {
            "id": 4846,
            "name": "Nueva Roma"
        },
        {
            "id": 2662,
            "name": "Nueva Suiza"
        },
        {
            "id": 3058,
            "name": "O Higgins"
        },
        {
            "id": 4689,
            "name": "Ochandio"
        },
        {
            "id": 2971,
            "name": "Odorqui"
        },
        {
            "id": 2887,
            "name": "Olascoaga"
        },
        {
            "id": 4250,
            "name": "Olavarria"
        },
        {
            "id": 2905,
            "name": "Oliden"
        },
        {
            "id": 4754,
            "name": "Oliveira Cesar"
        },
        {
            "id": 3897,
            "name": "Olivera"
        },
        {
            "id": 21727,
            "name": "Olivos"
        },
        {
            "id": 3177,
            "name": "Ombu"
        },
        {
            "id": 4968,
            "name": "Ombucta"
        },
        {
            "id": 3898,
            "name": "Open Door"
        },
        {
            "id": 4892,
            "name": "Orense"
        },
        {
            "id": 3151,
            "name": "Oriente"
        },
        {
            "id": 3490,
            "name": "Orlando"
        },
        {
            "id": 4344,
            "name": "Ortiz Basualdo"
        },
        {
            "id": 2486,
            "name": "Ortiz De Rosas"
        },
        {
            "id": 3585,
            "name": "Ostende"
        },
        {
            "id": 2924,
            "name": "Otamendi"
        },
        {
            "id": 3178,
            "name": "Oto"
        },
        {
            "id": 2704,
            "name": "Pablo Acosta"
        },
        {
            "id": 16473,
            "name": "Pablo Nogues"
        },
        {
            "id": 16490,
            "name": "Pablo Podesta"
        },
        {
            "id": 2839,
            "name": "Pachan"
        },
        {
            "id": 2597,
            "name": "Palantelen"
        },
        {
            "id": 3059,
            "name": "Palemon Huergo"
        },
        {
            "id": 2941,
            "name": "Palmitas"
        },
        {
            "id": 2860,
            "name": "Palo Blanco"
        },
        {
            "id": 2808,
            "name": "Paname"
        },
        {
            "id": 18486,
            "name": "Pancho Diaz"
        },
        {
            "id": 3670,
            "name": "Papin"
        },
        {
            "id": 4755,
            "name": "Parada Kilometro 158"
        },
        {
            "id": 3796,
            "name": "Parada Kilometro 76"
        },
        {
            "id": 3491,
            "name": "Parada Robles"
        },
        {
            "id": 3004,
            "name": "Parada Tatay"
        },
        {
            "id": 3770,
            "name": "Parag"
        },
        {
            "id": 27661,
            "name": "Paraje Fra Pal"
        },
        {
            "id": 3152,
            "name": "Paraje La Aurora"
        },
        {
            "id": 3216,
            "name": "Paraje La Vasca"
        },
        {
            "id": 2867,
            "name": "Paraje Miramar"
        },
        {
            "id": 27662,
            "name": "Paraje Santa Ana"
        },
        {
            "id": 4345,
            "name": "Paraje Santa Rosa"
        },
        {
            "id": 3930,
            "name": "Paraje Starache"
        },
        {
            "id": 3783,
            "name": "Pardo"
        },
        {
            "id": 2705,
            "name": "Parish"
        },
        {
            "id": 3586,
            "name": "Parque Carilo"
        },
        {
            "id": 2840,
            "name": "Parque Mu"
        },
        {
            "id": 16573,
            "name": "Parque San Martin"
        },
        {
            "id": 3047,
            "name": "Parque Taillade"
        },
        {
            "id": 3217,
            "name": "Parravichini"
        },
        {
            "id": 3179,
            "name": "Pasman"
        },
        {
            "id": 3032,
            "name": "Paso Alsina"
        },
        {
            "id": 4969,
            "name": "Paso Cramer"
        },
        {
            "id": 4893,
            "name": "Paso Del Medano"
        },
        {
            "id": 16530,
            "name": "Paso Del Rey"
        },
        {
            "id": 3126,
            "name": "Paso Mayor"
        },
        {
            "id": 3587,
            "name": "Pasos"
        },
        {
            "id": 3832,
            "name": "Pasteur"
        },
        {
            "id": 2525,
            "name": "Patricios"
        },
        {
            "id": 2869,
            "name": "Paula"
        },
        {
            "id": 3492,
            "name": "Pavon"
        },
        {
            "id": 3931,
            "name": "Payro R"
        },
        {
            "id": 3618,
            "name": "Pazos Kanki"
        },
        {
            "id": 4548,
            "name": "Pe"
        },
        {
            "id": 3114,
            "name": "Pearson"
        },
        {
            "id": 2487,
            "name": "Pedernales"
        },
        {
            "id": 4286,
            "name": "Pedro Gamen"
        },
        {
            "id": 2584,
            "name": "Pedro Lasalle"
        },
        {
            "id": 4970,
            "name": "Pedro Luro"
        },
        {
            "id": 3091,
            "name": "Pedro Nicolas Escribano"
        },
        {
            "id": 4287,
            "name": "Pehuajo"
        },
        {
            "id": 4299,
            "name": "Pehuelches"
        },
        {
            "id": 3127,
            "name": "Pehuen Co"
        },
        {
            "id": 4847,
            "name": "Pelicura"
        },
        {
            "id": 4300,
            "name": "Pellegrini"
        },
        {
            "id": 16592,
            "name": "Pereyra"
        },
        {
            "id": 3746,
            "name": "Pereyra Iraola Parque"
        },
        {
            "id": 4532,
            "name": "Perez Millan"
        },
        {
            "id": 16357,
            "name": "Pergamino"
        },
        {
            "id": 3092,
            "name": "Pessagno"
        },
        {
            "id": 3932,
            "name": "Pi"
        },
        {
            "id": 2665,
            "name": "Pi"
        },
        {
            "id": 3180,
            "name": "Pi"
        },
        {
            "id": 3641,
            "name": "Pichincha"
        },
        {
            "id": 4436,
            "name": "Piedra Ancha"
        },
        {
            "id": 3642,
            "name": "Piedritas"
        },
        {
            "id": 3855,
            "name": "Pieres"
        },
        {
            "id": 4894,
            "name": "Pierini"
        },
        {
            "id": 4614,
            "name": "Pigue"
        },
        {
            "id": 4380,
            "name": "Pila"
        },
        {
            "id": 26304,
            "name": "Pilar"
        },
        {
            "id": 3167,
            "name": "Pillahuinco"
        },
        {
            "id": 3588,
            "name": "Pinamar"
        },
        {
            "id": 4348,
            "name": "Pinzon"
        },
        {
            "id": 3933,
            "name": "Pipinas"
        },
        {
            "id": 2870,
            "name": "Pirovano"
        },
        {
            "id": 4583,
            "name": "Piruco"
        },
        {
            "id": 2598,
            "name": "Pla"
        },
        {
            "id": 2642,
            "name": "Pla Y Ragnoni"
        },
        {
            "id": 16593,
            "name": "Platanos"
        },
        {
            "id": 4502,
            "name": "Playa Chapadmalal"
        },
        {
            "id": 3556,
            "name": "Playa Las Margaritas"
        },
        {
            "id": 3784,
            "name": "Plaza Montero"
        },
        {
            "id": 3797,
            "name": "Plomer"
        },
        {
            "id": 4584,
            "name": "Plumacho"
        },
        {
            "id": 3747,
            "name": "Poblet"
        },
        {
            "id": 2569,
            "name": "Pocito"
        },
        {
            "id": 4631,
            "name": "Polvaredas"
        },
        {
            "id": 3758,
            "name": "Pontaut"
        },
        {
            "id": 16574,
            "name": "Pontevedra"
        },
        {
            "id": 2663,
            "name": "Porvenir"
        },
        {
            "id": 4251,
            "name": "Pourtale"
        },
        {
            "id": 3643,
            "name": "Pradere Juan A"
        },
        {
            "id": 4399,
            "name": "Presidente Derqui"
        },
        {
            "id": 2599,
            "name": "Presidente Quintana"
        },
        {
            "id": 4869,
            "name": "Primera Junta"
        },
        {
            "id": 4437,
            "name": "Puan"
        },
        {
            "id": 2488,
            "name": "Pueblitos"
        },
        {
            "id": 3833,
            "name": "Pueblo Martinez De Hoz"
        },
        {
            "id": 3899,
            "name": "Pueblo Nuevo"
        },
        {
            "id": 3696,
            "name": "Pueblo Nuevo"
        },
        {
            "id": 4252,
            "name": "Pueblo Nuevo"
        },
        {
            "id": 4349,
            "name": "Pueblo Otero"
        },
        {
            "id": 4288,
            "name": "Pueblo San Esteban"
        },
        {
            "id": 3181,
            "name": "Pueblo San Jose"
        },
        {
            "id": 3182,
            "name": "Pueblo Santa Maria"
        },
        {
            "id": 3105,
            "name": "Puente Batalla"
        },
        {
            "id": 2817,
            "name": "Puente Ca"
        },
        {
            "id": 4674,
            "name": "Puente Castex"
        },
        {
            "id": 4381,
            "name": "Puente El Ochenta"
        },
        {
            "id": 3128,
            "name": "Puerto Belgrano"
        },
        {
            "id": 4971,
            "name": "Puerto Coloma"
        },
        {
            "id": 3242,
            "name": "Puerto De Escobar"
        },
        {
            "id": 2757,
            "name": "Puerto Galvan"
        },
        {
            "id": 3229,
            "name": "Puerto La Plata"
        },
        {
            "id": 4172,
            "name": "Puerto Necochea"
        },
        {
            "id": 3129,
            "name": "Puerto Rosales"
        },
        {
            "id": 3033,
            "name": "Puerto Tres Bonetes"
        },
        {
            "id": 3034,
            "name": "Puerto Wassermann"
        },
        {
            "id": 4675,
            "name": "Puesto Del Medio"
        },
        {
            "id": 4350,
            "name": "Pujol"
        },
        {
            "id": 3130,
            "name": "Punta Alta"
        },
        {
            "id": 3243,
            "name": "Punta De Canal"
        },
        {
            "id": 3934,
            "name": "Punta Indio"
        },
        {
            "id": 3230,
            "name": "Punta Lara"
        },
        {
            "id": 3557,
            "name": "Punta Medanos"
        },
        {
            "id": 4639,
            "name": "Quenuma"
        },
        {
            "id": 3856,
            "name": "Quequen"
        },
        {
            "id": 3183,
            "name": "Qui"
        },
        {
            "id": 3759,
            "name": "Quilco"
        },
        {
            "id": 16551,
            "name": "Quilmes"
        },
        {
            "id": 16552,
            "name": "Quilmes Oeste"
        },
        {
            "id": 4926,
            "name": "Quirno Costa"
        },
        {
            "id": 2526,
            "name": "Quiroga"
        },
        {
            "id": 26313,
            "name": "Rafael Calzada"
        },
        {
            "id": 16507,
            "name": "Rafael Castillo"
        },
        {
            "id": 4585,
            "name": "Rafael Obligado"
        },
        {
            "id": 4533,
            "name": "Ramallo"
        },
        {
            "id": 3106,
            "name": "Ramon Biaus"
        },
        {
            "id": 2527,
            "name": "Ramon J Neild"
        },
        {
            "id": 4173,
            "name": "Ramon Santamarina"
        },
        {
            "id": 16508,
            "name": "Ramos Mejia"
        },
        {
            "id": 2797,
            "name": "Ramos Otero"
        },
        {
            "id": 4351,
            "name": "Rancagua"
        },
        {
            "id": 3601,
            "name": "Ranchos"
        },
        {
            "id": 16594,
            "name": "Ranelagh"
        },
        {
            "id": 4549,
            "name": "Rauch"
        },
        {
            "id": 3760,
            "name": "Raulet"
        },
        {
            "id": 3060,
            "name": "Rawson"
        },
        {
            "id": 4382,
            "name": "Real Audiencia"
        },
        {
            "id": 4253,
            "name": "Recalde"
        },
        {
            "id": 2528,
            "name": "Reginaldo J Neild"
        },
        {
            "id": 16491,
            "name": "Remedios De Escalada"
        },
        {
            "id": 3765,
            "name": "Remedios De Escalada"
        },
        {
            "id": 4818,
            "name": "Requena"
        },
        {
            "id": 4895,
            "name": "Reta"
        },
        {
            "id": 3005,
            "name": "Retiro San Pablo"
        },
        {
            "id": 2841,
            "name": "Ricardo Gavi"
        },
        {
            "id": 16537,
            "name": "Ricardo Rojas"
        },
        {
            "id": 2798,
            "name": "Rincon De Baudrix"
        },
        {
            "id": 16538,
            "name": "Rincon De Milberg"
        },
        {
            "id": 3935,
            "name": "Rincon De Noario"
        },
        {
            "id": 3602,
            "name": "Rincon De Vivot"
        },
        {
            "id": 4153,
            "name": "Rincon Norte"
        },
        {
            "id": 4756,
            "name": "Rio Tala"
        },
        {
            "id": 4564,
            "name": "Rivadavia"
        },
        {
            "id": 4438,
            "name": "Rivadeo"
        },
        {
            "id": 2570,
            "name": "Rivera"
        },
        {
            "id": 4586,
            "name": "Roberto Cano"
        },
        {
            "id": 18302,
            "name": "Roberto Payro"
        },
        {
            "id": 3834,
            "name": "Roberts"
        },
        {
            "id": 4254,
            "name": "Rocha"
        },
        {
            "id": 4587,
            "name": "Rojas"
        },
        {
            "id": 3671,
            "name": "Rolito Estacion Fcgb"
        },
        {
            "id": 4777,
            "name": "Roman Baez"
        },
        {
            "id": 4565,
            "name": "Roosevelt"
        },
        {
            "id": 4600,
            "name": "Roque Perez"
        },
        {
            "id": 3785,
            "name": "Rosas"
        },
        {
            "id": 4289,
            "name": "Rovira"
        },
        {
            "id": 4663,
            "name": "Ruiz Solis"
        },
        {
            "id": 3936,
            "name": "Ruta 11 Kilometro 23"
        },
        {
            "id": 2942,
            "name": "Ruta 205 Kilometro 57"
        },
        {
            "id": 2943,
            "name": "Ruta 3 Kilometro 75 700"
        },
        {
            "id": 3900,
            "name": "Ruta 8 Kilometro 77"
        },
        {
            "id": 4757,
            "name": "Ruta 9 Kilometro 169 5"
        },
        {
            "id": 18242,
            "name": "Ruta 9 Kilometro 72"
        },
        {
            "id": 4615,
            "name": "Saavedra"
        },
        {
            "id": 27854,
            "name": "Sabbi"
        },
        {
            "id": 3697,
            "name": "Saforcada"
        },
        {
            "id": 3558,
            "name": "Salada Chica"
        },
        {
            "id": 3559,
            "name": "Salada Grande"
        },
        {
            "id": 4632,
            "name": "Saladillo"
        },
        {
            "id": 4633,
            "name": "Saladillo Norte"
        },
        {
            "id": 3205,
            "name": "Salazar"
        },
        {
            "id": 4848,
            "name": "Saldungaray"
        },
        {
            "id": 3035,
            "name": "Salina De Piedra"
        },
        {
            "id": 4972,
            "name": "Salinas Chicas"
        },
        {
            "id": 4640,
            "name": "Salliquelo"
        },
        {
            "id": 4652,
            "name": "Salto"
        },
        {
            "id": 3873,
            "name": "Salvador Maria"
        },
        {
            "id": 2906,
            "name": "Samborombon"
        },
        {
            "id": 4973,
            "name": "San Adolfo"
        },
        {
            "id": 2799,
            "name": "San Agustin"
        },
        {
            "id": 27798,
            "name": "San Alberto"
        },
        {
            "id": 4439,
            "name": "San Andres"
        },
        {
            "id": 16567,
            "name": "San Andres"
        },
        {
            "id": 27852,
            "name": "San Andres"
        },
        {
            "id": 4664,
            "name": "San Andres De Giles"
        },
        {
            "id": 4819,
            "name": "San Andres De Tapalque"
        },
        {
            "id": 2571,
            "name": "San Antonio"
        },
        {
            "id": 4383,
            "name": "San Antonio"
        },
        {
            "id": 4676,
            "name": "San Antonio De Areco"
        },
        {
            "id": 16575,
            "name": "San Antonio De Padua"
        },
        {
            "id": 4634,
            "name": "San Benito"
        },
        {
            "id": 4290,
            "name": "San Bernardo"
        },
        {
            "id": 4820,
            "name": "San Bernardo"
        },
        {
            "id": 3560,
            "name": "San Bernardo Del Tuyu"
        },
        {
            "id": 4174,
            "name": "San Cala"
        },
        {
            "id": 2994,
            "name": "San Carlos"
        },
        {
            "id": 4690,
            "name": "San Cayetano"
        },
        {
            "id": 3561,
            "name": "San Clemente Del Tuyu"
        },
        {
            "id": 2643,
            "name": "San Cornelio"
        },
        {
            "id": 4384,
            "name": "San Daniel"
        },
        {
            "id": 2644,
            "name": "San Eduardo Del Mar"
        },
        {
            "id": 3901,
            "name": "San Eladio"
        },
        {
            "id": 4927,
            "name": "San Emilio"
        },
        {
            "id": 4440,
            "name": "San Emilio"
        },
        {
            "id": 4385,
            "name": "San Enrique"
        },
        {
            "id": 2489,
            "name": "San Enrique"
        },
        {
            "id": 3006,
            "name": "San Ernesto"
        },
        {
            "id": 4352,
            "name": "San Federico"
        },
        {
            "id": 2645,
            "name": "San Felipe"
        },
        {
            "id": 3672,
            "name": "San Fermin"
        },
        {
            "id": 16439,
            "name": "San Fernando"
        },
        {
            "id": 4897,
            "name": "San Francisco De Bellocq"
        },
        {
            "id": 16553,
            "name": "San Francisco Solano"
        },
        {
            "id": 26315,
            "name": "San Francisco Solano"
        },
        {
            "id": 4441,
            "name": "San German"
        },
        {
            "id": 2706,
            "name": "San Gervacio"
        },
        {
            "id": 2672,
            "name": "San Ignacio"
        },
        {
            "id": 4699,
            "name": "San Isidro"
        },
        {
            "id": 4116,
            "name": "San Jacinto"
        },
        {
            "id": 4255,
            "name": "San Jacinto"
        },
        {
            "id": 3771,
            "name": "San Jorge"
        },
        {
            "id": 2600,
            "name": "San Jose"
        },
        {
            "id": 4175,
            "name": "San Jose"
        },
        {
            "id": 4442,
            "name": "San Jose"
        },
        {
            "id": 2490,
            "name": "San Jose"
        },
        {
            "id": 4550,
            "name": "San Jose"
        },
        {
            "id": 26314,
            "name": "San Jose"
        },
        {
            "id": 3048,
            "name": "San Jose De Gali"
        },
        {
            "id": 3562,
            "name": "San Jose De Los Quinteros"
        },
        {
            "id": 2646,
            "name": "San Jose De Otamendi"
        },
        {
            "id": 4353,
            "name": "San Juan"
        },
        {
            "id": 4256,
            "name": "San Juan"
        },
        {
            "id": 2529,
            "name": "San Juan"
        },
        {
            "id": 2972,
            "name": "San Juan De Nelson"
        },
        {
            "id": 4080,
            "name": "San Julian"
        },
        {
            "id": 16509,
            "name": "San Justo"
        },
        {
            "id": 3542,
            "name": "San Justo"
        },
        {
            "id": 2673,
            "name": "San Laureano"
        },
        {
            "id": 3857,
            "name": "San Manuel"
        },
        {
            "id": 4616,
            "name": "San Martin De Tours"
        },
        {
            "id": 4566,
            "name": "San Mauricio"
        },
        {
            "id": 4898,
            "name": "San Mayol"
        },
        {
            "id": 16525,
            "name": "San Miguel"
        },
        {
            "id": 2572,
            "name": "San Miguel Arcangel"
        },
        {
            "id": 4720,
            "name": "San Miguel Del Monte"
        },
        {
            "id": 3858,
            "name": "San Miguel Del Moro"
        },
        {
            "id": 21075,
            "name": "San Nicolas De Los Arroyos"
        },
        {
            "id": 4802,
            "name": "San Pascual"
        },
        {
            "id": 3061,
            "name": "San Patricio"
        },
        {
            "id": 4758,
            "name": "San Pedro"
        },
        {
            "id": 3761,
            "name": "San Quilco"
        },
        {
            "id": 18267,
            "name": "San Rafael"
        },
        {
            "id": 4354,
            "name": "San Ramon"
        },
        {
            "id": 4870,
            "name": "San Ramon"
        },
        {
            "id": 3153,
            "name": "San Ramon"
        },
        {
            "id": 2707,
            "name": "San Ramon De Anchorena"
        },
        {
            "id": 3154,
            "name": "San Roman"
        },
        {
            "id": 4928,
            "name": "San Roque"
        },
        {
            "id": 3107,
            "name": "San Sebastian"
        },
        {
            "id": 4691,
            "name": "San Severo"
        },
        {
            "id": 2800,
            "name": "San Simon"
        },
        {
            "id": 4081,
            "name": "San Valentin"
        },
        {
            "id": 4772,
            "name": "San Vicente"
        },
        {
            "id": 4567,
            "name": "Sansinena"
        },
        {
            "id": 3874,
            "name": "Santa Alicia"
        },
        {
            "id": 4692,
            "name": "Santa Catalina"
        },
        {
            "id": 4291,
            "name": "Santa Cecilia Centro"
        },
        {
            "id": 4292,
            "name": "Santa Cecilia Norte"
        },
        {
            "id": 4293,
            "name": "Santa Cecilia Sud"
        },
        {
            "id": 4082,
            "name": "Santa Clara Del Mar"
        },
        {
            "id": 3762,
            "name": "Santa Clementina"
        },
        {
            "id": 2809,
            "name": "Santa Coloma"
        },
        {
            "id": 3902,
            "name": "Santa Elena"
        },
        {
            "id": 18307,
            "name": "Santa Elena"
        },
        {
            "id": 3772,
            "name": "Santa Elena"
        },
        {
            "id": 3644,
            "name": "Santa Eleodora"
        },
        {
            "id": 3875,
            "name": "Santa Felicia"
        },
        {
            "id": 4871,
            "name": "Santa Ines"
        },
        {
            "id": 2995,
            "name": "Santa Ines"
        },
        {
            "id": 2647,
            "name": "Santa Irene"
        },
        {
            "id": 2658,
            "name": "Santa Isabel"
        },
        {
            "id": 4759,
            "name": "Santa Lucia"
        },
        {
            "id": 4257,
            "name": "Santa Luisa"
        },
        {
            "id": 3835,
            "name": "Santa Maria"
        },
        {
            "id": 2973,
            "name": "Santa Maria Belloq"
        },
        {
            "id": 3645,
            "name": "Santa Regina"
        },
        {
            "id": 4355,
            "name": "Santa Rita"
        },
        {
            "id": 3673,
            "name": "Santa Rita Pdo Guamini"
        },
        {
            "id": 2944,
            "name": "Santa Rosa"
        },
        {
            "id": 16580,
            "name": "Santa Rosa"
        },
        {
            "id": 4821,
            "name": "Santa Rosa"
        },
        {
            "id": 3786,
            "name": "Santa Rosa De Minellono"
        },
        {
            "id": 4534,
            "name": "Santa Teresa"
        },
        {
            "id": 3563,
            "name": "Santa Teresa"
        },
        {
            "id": 3564,
            "name": "Santa Teresita"
        },
        {
            "id": 4356,
            "name": "Santa Teresita Pergamino"
        },
        {
            "id": 3184,
            "name": "Santa Trinidad"
        },
        {
            "id": 2491,
            "name": "Santiago Garbarini"
        },
        {
            "id": 4601,
            "name": "Santiago Larre"
        },
        {
            "id": 3948,
            "name": "Santo Domingo"
        },
        {
            "id": 2974,
            "name": "Santo Tomas"
        },
        {
            "id": 2975,
            "name": "Santo Tomas Chico"
        },
        {
            "id": 16492,
            "name": "Santos Lugares"
        },
        {
            "id": 2530,
            "name": "Santos Unzue"
        },
        {
            "id": 2461,
            "name": "Sarandi"
        },
        {
            "id": 3115,
            "name": "Sarasa"
        },
        {
            "id": 3674,
            "name": "Saturno"
        },
        {
            "id": 2758,
            "name": "Sauce Chico"
        },
        {
            "id": 18272,
            "name": "Sauce Corto"
        },
        {
            "id": 3155,
            "name": "Sauce Grande"
        },
        {
            "id": 18309,
            "name": "Sauce Grande"
        },
        {
            "id": 3808,
            "name": "Sauzales"
        },
        {
            "id": 3949,
            "name": "Segurola"
        },
        {
            "id": 4117,
            "name": "Seminario Pio Xii"
        },
        {
            "id": 3218,
            "name": "Sevigne"
        },
        {
            "id": 2708,
            "name": "Shaw"
        },
        {
            "id": 4083,
            "name": "Siempre Verde"
        },
        {
            "id": 4258,
            "name": "Sierra Chica"
        },
        {
            "id": 4849,
            "name": "Sierra De La Ventana"
        },
        {
            "id": 4508,
            "name": "Sierra De Los Padres"
        },
        {
            "id": 4259,
            "name": "Sierras Bayas"
        },
        {
            "id": 2976,
            "name": "Smith"
        },
        {
            "id": 4154,
            "name": "Sol De Mayo"
        },
        {
            "id": 4588,
            "name": "Sol De Mayo"
        },
        {
            "id": 3620,
            "name": "Solale"
        },
        {
            "id": 2674,
            "name": "Solanet"
        },
        {
            "id": 4665,
            "name": "Solis"
        },
        {
            "id": 16595,
            "name": "Sourigues"
        },
        {
            "id": 3798,
            "name": "Speratti"
        },
        {
            "id": 3589,
            "name": "Speroni"
        },
        {
            "id": 2759,
            "name": "Spurr"
        },
        {
            "id": 3168,
            "name": "Stegmann"
        },
        {
            "id": 3036,
            "name": "Stroeder"
        },
        {
            "id": 3903,
            "name": "Sucre"
        },
        {
            "id": 4778,
            "name": "Suipacha"
        },
        {
            "id": 4568,
            "name": "Sundblad"
        },
        {
            "id": 16510,
            "name": "Tablada"
        },
        {
            "id": 4653,
            "name": "Tacuari"
        },
        {
            "id": 3859,
            "name": "Tamangueyu"
        },
        {
            "id": 4357,
            "name": "Tambo Nuevo"
        },
        {
            "id": 16359,
            "name": "Tandil"
        },
        {
            "id": 4822,
            "name": "Tapalque"
        },
        {
            "id": 16511,
            "name": "Tapiales"
        },
        {
            "id": 3007,
            "name": "Tatay"
        },
        {
            "id": 2842,
            "name": "Tedin Uriburu"
        },
        {
            "id": 3169,
            "name": "Tejo Galeta"
        },
        {
            "id": 16451,
            "name": "Temperley"
        },
        {
            "id": 4260,
            "name": "Teniente Coronel Mi"
        },
        {
            "id": 4974,
            "name": "Teniente Origone"
        },
        {
            "id": 3037,
            "name": "Termas Los Gauchos"
        },
        {
            "id": 2573,
            "name": "Thames"
        },
        {
            "id": 16539,
            "name": "Tigre"
        },
        {
            "id": 2996,
            "name": "Timote"
        },
        {
            "id": 3590,
            "name": "Tio Domingo"
        },
        {
            "id": 2818,
            "name": "Todd"
        },
        {
            "id": 4635,
            "name": "Toldos Viejos"
        },
        {
            "id": 4118,
            "name": "Tomas Jofre"
        },
        {
            "id": 4836,
            "name": "Tordillo"
        },
        {
            "id": 4850,
            "name": "Tornquist"
        },
        {
            "id": 4400,
            "name": "Toro"
        },
        {
            "id": 3904,
            "name": "Torres"
        },
        {
            "id": 16474,
            "name": "Tortuguitas"
        },
        {
            "id": 4872,
            "name": "Trenque Lauquen"
        },
        {
            "id": 2997,
            "name": "Tres Algarrobos"
        },
        {
            "id": 4899,
            "name": "Tres Arroyos"
        },
        {
            "id": 4443,
            "name": "Tres Cuervos"
        },
        {
            "id": 2574,
            "name": "Tres Lagunas"
        },
        {
            "id": 3219,
            "name": "Tres Leguas"
        },
        {
            "id": 16422,
            "name": "Tres Lomas"
        },
        {
            "id": 4851,
            "name": "Tres Picos"
        },
        {
            "id": 3008,
            "name": "Tres Sargentos"
        },
        {
            "id": 3809,
            "name": "Trigales"
        },
        {
            "id": 16469,
            "name": "Tristan Suarez"
        },
        {
            "id": 3836,
            "name": "Triunvirato"
        },
        {
            "id": 16540,
            "name": "Troncos Del Talar"
        },
        {
            "id": 4873,
            "name": "Tronge"
        },
        {
            "id": 2531,
            "name": "Tropezon"
        },
        {
            "id": 16531,
            "name": "Trujui"
        },
        {
            "id": 16452,
            "name": "Turdera"
        },
        {
            "id": 4666,
            "name": "Tuyuti"
        },
        {
            "id": 4823,
            "name": "Uballes"
        },
        {
            "id": 2675,
            "name": "Udaquiola"
        },
        {
            "id": 4084,
            "name": "Unidad Turistica Chapadmalal"
        },
        {
            "id": 2872,
            "name": "Urdampilleta"
        },
        {
            "id": 2945,
            "name": "Uribelarrea"
        },
        {
            "id": 4358,
            "name": "Urquiza"
        },
        {
            "id": 2709,
            "name": "Va"
        },
        {
            "id": 4677,
            "name": "Vagues"
        },
        {
            "id": 2492,
            "name": "Valdez"
        },
        {
            "id": 3766,
            "name": "Valentin Alsina"
        },
        {
            "id": 4569,
            "name": "Valentin Gomez"
        },
        {
            "id": 4176,
            "name": "Valenzuela Anton"
        },
        {
            "id": 3591,
            "name": "Valeria Del Mar"
        },
        {
            "id": 2873,
            "name": "Vallimanca"
        },
        {
            "id": 2585,
            "name": "Vasquez"
        },
        {
            "id": 3220,
            "name": "Vecino"
        },
        {
            "id": 3810,
            "name": "Vedia"
        },
        {
            "id": 4805,
            "name": "Vela"
        },
        {
            "id": 4824,
            "name": "Velloso"
        },
        {
            "id": 2760,
            "name": "Venancio"
        },
        {
            "id": 3937,
            "name": "Vergara"
        },
        {
            "id": 3938,
            "name": "Veronica"
        },
        {
            "id": 2820,
            "name": "Vi"
        },
        {
            "id": 4444,
            "name": "Viboras"
        },
        {
            "id": 2946,
            "name": "Vicente Casares"
        },
        {
            "id": 21728,
            "name": "Vicente Lopez"
        },
        {
            "id": 2710,
            "name": "Vicente Pereda"
        },
        {
            "id": 16440,
            "name": "Victoria"
        },
        {
            "id": 3675,
            "name": "Victorino De La Plaza"
        },
        {
            "id": 3939,
            "name": "Vieytes"
        },
        {
            "id": 3837,
            "name": "Vigelencia"
        },
        {
            "id": 3787,
            "name": "Vilela"
        },
        {
            "id": 4700,
            "name": "Villa Adelina"
        },
        {
            "id": 2947,
            "name": "Villa Adriana"
        },
        {
            "id": 4401,
            "name": "Villa Agueda"
        },
        {
            "id": 3206,
            "name": "Villa Aldeanita"
        },
        {
            "id": 4994,
            "name": "Villa Angus"
        },
        {
            "id": 3185,
            "name": "Villa Arcadia"
        },
        {
            "id": 4402,
            "name": "Villa Astolfi"
        },
        {
            "id": 16568,
            "name": "Villa Ballester"
        },
        {
            "id": 3698,
            "name": "Villa Belgrano"
        },
        {
            "id": 16493,
            "name": "Villa Bosch"
        },
        {
            "id": 4874,
            "name": "Villa Branda"
        },
        {
            "id": 16581,
            "name": "Villa Brown"
        },
        {
            "id": 2761,
            "name": "Villa Buenos Aires"
        },
        {
            "id": 4403,
            "name": "Villa Buide"
        },
        {
            "id": 4551,
            "name": "Villa Burgos"
        },
        {
            "id": 2843,
            "name": "Villa Cacique"
        },
        {
            "id": 4995,
            "name": "Villa Capdepont"
        },
        {
            "id": 3207,
            "name": "Villa Carola"
        },
        {
            "id": 4900,
            "name": "Villa Carucha"
        },
        {
            "id": 2575,
            "name": "Villa Castelar Est Erize"
        },
        {
            "id": 4359,
            "name": "Villa Centenario"
        },
        {
            "id": 2762,
            "name": "Villa Cerrito"
        },
        {
            "id": 3565,
            "name": "Villa Clelia"
        },
        {
            "id": 2648,
            "name": "Villa Copacabana"
        },
        {
            "id": 4360,
            "name": "Villa Da Fonte"
        },
        {
            "id": 4806,
            "name": "Villa Daza"
        },
        {
            "id": 16475,
            "name": "Villa De Mayo"
        },
        {
            "id": 3131,
            "name": "Villa Del Mar"
        },
        {
            "id": 4929,
            "name": "Villa Delfina"
        },
        {
            "id": 4760,
            "name": "Villa Depietri"
        },
        {
            "id": 2532,
            "name": "Villa Diamantina"
        },
        {
            "id": 4177,
            "name": "Villa Diaz Velez"
        },
        {
            "id": 2763,
            "name": "Villa Domingo Pronsato"
        },
        {
            "id": 2462,
            "name": "Villa Dominico"
        },
        {
            "id": 4807,
            "name": "Villa Dufau"
        },
        {
            "id": 3038,
            "name": "Villa Elena"
        },
        {
            "id": 3748,
            "name": "Villa Elisa"
        },
        {
            "id": 16596,
            "name": "Villa Espa"
        },
        {
            "id": 4667,
            "name": "Villa Espil"
        },
        {
            "id": 2764,
            "name": "Villa Floresta"
        },
        {
            "id": 4996,
            "name": "Villa Florida"
        },
        {
            "id": 4997,
            "name": "Villa Fox"
        },
        {
            "id": 3621,
            "name": "Villa Francia"
        },
        {
            "id": 3906,
            "name": "Villa Francia"
        },
        {
            "id": 4808,
            "name": "Villa Galicia"
        },
        {
            "id": 3132,
            "name": "Villa General Arias"
        },
        {
            "id": 3592,
            "name": "Villa Gesell"
        },
        {
            "id": 16445,
            "name": "Villa Gobernador Udaondo"
        },
        {
            "id": 4361,
            "name": "Villa Godoy"
        },
        {
            "id": 4535,
            "name": "Villa Gral Savio Ex Sanchez"
        },
        {
            "id": 2765,
            "name": "Villa Harding Green"
        },
        {
            "id": 2766,
            "name": "Villa Herminia"
        },
        {
            "id": 18271,
            "name": "Villa Igollo"
        },
        {
            "id": 16512,
            "name": "Villa Insuperable"
        },
        {
            "id": 4445,
            "name": "Villa Iris"
        },
        {
            "id": 4809,
            "name": "Villa Italia"
        },
        {
            "id": 2767,
            "name": "Villa Italia"
        },
        {
            "id": 2823,
            "name": "Villa Juarez"
        },
        {
            "id": 3247,
            "name": "Villa La Chechela"
        },
        {
            "id": 16554,
            "name": "Villa La Florida"
        },
        {
            "id": 3133,
            "name": "Villa Laura"
        },
        {
            "id": 18256,
            "name": "Villa Laza"
        },
        {
            "id": 4761,
            "name": "Villa Leandra"
        },
        {
            "id": 4678,
            "name": "Villa Lia"
        },
        {
            "id": 2768,
            "name": "Villa Libre"
        },
        {
            "id": 4552,
            "name": "Villa Loma"
        },
        {
            "id": 2769,
            "name": "Villa Loreto"
        },
        {
            "id": 16513,
            "name": "Villa Luzuriaga"
        },
        {
            "id": 16569,
            "name": "Villa Lynch"
        },
        {
            "id": 2874,
            "name": "Villa Lynch Pueyrredon"
        },
        {
            "id": 3134,
            "name": "Villa Maio"
        },
        {
            "id": 2576,
            "name": "Villa Margarita"
        },
        {
            "id": 2601,
            "name": "Villa Maria"
        },
        {
            "id": 21729,
            "name": "Villa Martelli"
        },
        {
            "id": 4998,
            "name": "Villa Massoni"
        },
        {
            "id": 3699,
            "name": "Villa Mayor"
        },
        {
            "id": 2577,
            "name": "Villa Maza"
        },
        {
            "id": 2770,
            "name": "Villa Mitre"
        },
        {
            "id": 4262,
            "name": "Villa Monica"
        },
        {
            "id": 3108,
            "name": "Villa Moquehua"
        },
        {
            "id": 4999,
            "name": "Villa Mosconi"
        },
        {
            "id": 2771,
            "name": "Villa Nocito"
        },
        {
            "id": 24842,
            "name": "Villa Numancia"
        },
        {
            "id": 2772,
            "name": "Villa Obrera"
        },
        {
            "id": 2773,
            "name": "Villa Olga Grumbein"
        },
        {
            "id": 3700,
            "name": "Villa Ortega"
        },
        {
            "id": 2602,
            "name": "Villa Ortiz"
        },
        {
            "id": 3701,
            "name": "Villa Penotti"
        },
        {
            "id": 3493,
            "name": "Villa Preceptor M Robles"
        },
        {
            "id": 3494,
            "name": "Villa Preceptor Manuel Cruz"
        },
        {
            "id": 4362,
            "name": "Villa Progreso"
        },
        {
            "id": 4589,
            "name": "Villa Progreso"
        },
        {
            "id": 3773,
            "name": "Villa Pueblo Nuevo"
        },
        {
            "id": 3860,
            "name": "Villa Puerto Quequen"
        },
        {
            "id": 16494,
            "name": "Villa Raffo"
        },
        {
            "id": 4537,
            "name": "Villa Ramallo"
        },
        {
            "id": 4536,
            "name": "Villa Ramallo Est Ffcc"
        },
        {
            "id": 4975,
            "name": "Villa Rio Chico"
        },
        {
            "id": 18266,
            "name": "Villa Roch"
        },
        {
            "id": 4404,
            "name": "Villa Rosa"
        },
        {
            "id": 2774,
            "name": "Villa Rosas"
        },
        {
            "id": 4668,
            "name": "Villa Ruiz"
        },
        {
            "id": 3646,
            "name": "Villa Saboya"
        },
        {
            "id": 16495,
            "name": "Villa Saenz Pe"
        },
        {
            "id": 4669,
            "name": "Villa San Alberto"
        },
        {
            "id": 4654,
            "name": "Villa San Jose"
        },
        {
            "id": 4553,
            "name": "Villa San Pedro"
        },
        {
            "id": 2775,
            "name": "Villa Sanchez Elia"
        },
        {
            "id": 2819,
            "name": "Villa Sanguinetti"
        },
        {
            "id": 4405,
            "name": "Villa Santa Maria"
        },
        {
            "id": 16432,
            "name": "Villa Santos Tesei"
        },
        {
            "id": 2875,
            "name": "Villa Sanz"
        },
        {
            "id": 4762,
            "name": "Villa Sarita"
        },
        {
            "id": 16435,
            "name": "Villa Sarmiento"
        },
        {
            "id": 3647,
            "name": "Villa Sauce"
        },
        {
            "id": 2578,
            "name": "Villa Sauri"
        },
        {
            "id": 4570,
            "name": "Villa Sena"
        },
        {
            "id": 2776,
            "name": "Villa Serra"
        },
        {
            "id": 3702,
            "name": "Villa Talleres"
        },
        {
            "id": 4763,
            "name": "Villa Teresa"
        },
        {
            "id": 3703,
            "name": "Villa Triangulo"
        },
        {
            "id": 3248,
            "name": "Villa Vallier"
        },
        {
            "id": 16582,
            "name": "Villa Vatteone"
        },
        {
            "id": 27657,
            "name": "Villa Ventana"
        },
        {
            "id": 4406,
            "name": "Villa Verde"
        },
        {
            "id": 4509,
            "name": "Villa Vignolo"
        },
        {
            "id": 3704,
            "name": "Villa York"
        },
        {
            "id": 3062,
            "name": "Villafa"
        },
        {
            "id": 4764,
            "name": "Villaigrillo"
        },
        {
            "id": 3039,
            "name": "Villalonga"
        },
        {
            "id": 3603,
            "name": "Villanueva"
        },
        {
            "id": 3799,
            "name": "Villars"
        },
        {
            "id": 16514,
            "name": "Virrey Del Pino"
        },
        {
            "id": 16441,
            "name": "Virreyes"
        },
        {
            "id": 3093,
            "name": "Vista Alegre"
        },
        {
            "id": 3094,
            "name": "Vitel"
        },
        {
            "id": 4085,
            "name": "Vivorata"
        },
        {
            "id": 3622,
            "name": "Volta"
        },
        {
            "id": 3774,
            "name": "Voluntad"
        },
        {
            "id": 4765,
            "name": "Vuelta De Obligado"
        },
        {
            "id": 3676,
            "name": "Vuelta De Zapata"
        },
        {
            "id": 2888,
            "name": "Warnes"
        },
        {
            "id": 2463,
            "name": "Wilde"
        },
        {
            "id": 4825,
            "name": "Yerbas"
        },
        {
            "id": 2649,
            "name": "Yraizos"
        },
        {
            "id": 2579,
            "name": "Yutuyaco"
        },
        {
            "id": 4104,
            "name": "Zamudio"
        },
        {
            "id": 3876,
            "name": "Zapiola"
        },
        {
            "id": 5000,
            "name": "Zarate"
        },
        {
            "id": 4930,
            "name": "Zavalia"
        },
        {
            "id": 16583,
            "name": "Zeballos"
        },
        {
            "id": 4407,
            "name": "Zelaya"
        },
        {
            "id": 4721,
            "name": "Zenon Videla Dorna"
        },
        {
            "id": 3186,
            "name": "Zentena"
        },
        {
            "id": 3187,
            "name": "Zoilo Peralta"
        },
        {
            "id": 27822,
            "name": "Zona Cangrejales"
        },
        {
            "id": 27599,
            "name": "Zona Delta Campana"
        },
        {
            "id": 16442,
            "name": "Zona Delta San Fernando"
        },
        {
            "id": 27594,
            "name": "Zona Delta Tigre"
        },
        {
            "id": 27598,
            "name": "Zona Delta Zarate"
        },
        {
            "id": 4127,
            "name": "Zubiaurre"
        }
    ]
}

HTTP Request

GET api/city/province/{province}

List all Videoconferences rooms

Example request:

curl -X GET \
    -G "http://localhost/api/conference/all" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/conference/all"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/conference/all

List Videoconferences by doctor and/or dates

Example request:

curl -X GET \
    -G "http://localhost/api/conference/list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/conference/list"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/conference/list

Get a VideoConference by id

Example request:

curl -X GET \
    -G "http://localhost/api/conference/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/conference/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/conference/{vc_id}

Join a Videoconference room

Example request:

curl -X GET \
    -G "http://localhost/api/conference/join/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/conference/join/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

null

HTTP Request

GET api/conference/join/{share_code}

Get all messages of a videoconference trough a call

Example request:

curl -X GET \
    -G "http://localhost/api/conference/messages/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/conference/messages/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": [],
    "message": "all_messages."
}

HTTP Request

GET api/conference/messages/{call}

Joined into a Videoconference room

Example request:

curl -X PUT \
    "http://localhost/api/conference/joined/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/conference/joined/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "online": [
        "FIELD_REQUIRED"
    ]
}

HTTP Request

PUT api/conference/joined/{vc_id}

Start a Videoconference room

Example request:

curl -X PUT \
    "http://localhost/api/conference/start/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/conference/start/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

PUT api/conference/start/{vc_id}

Cancel a non started Videoconference room

Example request:

curl -X PUT \
    "http://localhost/api/conference/cancel/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/conference/cancel/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

PUT api/conference/cancel/{vc_id}

Pause a started Videoconference room

Example request:

curl -X PUT \
    "http://localhost/api/conference/pause/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/conference/pause/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

PUT api/conference/pause/{vc_id}

Resume a paused Videoconference room

Example request:

curl -X PUT \
    "http://localhost/api/conference/resume/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/conference/resume/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

PUT api/conference/resume/{vc_id}

Finish a started Videoconference room

Example request:

curl -X PUT \
    "http://localhost/api/conference/finish/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/conference/finish/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

PUT api/conference/finish/{vc_id}

Update a VideoConference room

Example request:

curl -X PUT \
    "http://localhost/api/conference/update/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/conference/update/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

PUT api/conference/update/{vc_id}

Create a new VideoConference room

Example request:

curl -X POST \
    "http://localhost/api/conference/store" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/conference/store"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

POST api/conference/store

Delete a VideoConference room

Example request:

curl -X DELETE \
    "http://localhost/api/conference/delete/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/conference/delete/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

DELETE api/conference/delete/{vc_id}

Get all configurations.

Example request:

curl -X GET \
    -G "http://localhost/api/configurations/all" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/configurations/all"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/configurations/all

Enable or disable recording.

Example request:

curl -X POST \
    "http://localhost/api/configurations/record/enable" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/configurations/record/enable"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

POST api/configurations/record/enable

Get all diagnosis.

Example request:

curl -X GET \
    -G "http://localhost/api/diagnosis/all" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/diagnosis/all"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": [
        {
            "conceptId": 1,
            "term": "Abdomen agudo"
        },
        {
            "conceptId": 2,
            "term": "Acromegalia"
        },
        {
            "conceptId": 3,
            "term": "Artritis"
        },
        {
            "conceptId": 4,
            "term": "Artrosis"
        },
        {
            "conceptId": 5,
            "term": "Asma bronquial"
        },
        {
            "conceptId": 6,
            "term": "Atopía"
        },
        {
            "conceptId": 7,
            "term": "Bronquitis aguda"
        },
        {
            "conceptId": 8,
            "term": "Calambres"
        },
        {
            "conceptId": 9,
            "term": "Candidiasis"
        },
        {
            "conceptId": 10,
            "term": "Cefalea tensional"
        },
        {
            "conceptId": 11,
            "term": "Celulitis"
        },
        {
            "conceptId": 12,
            "term": "Cistitis"
        },
        {
            "conceptId": 13,
            "term": "Conjuntivitis"
        },
        {
            "conceptId": 14,
            "term": "Contractura muscular"
        },
        {
            "conceptId": 15,
            "term": "Crisis de pánico"
        },
        {
            "conceptId": 16,
            "term": "Cáncer de piel"
        },
        {
            "conceptId": 17,
            "term": "Cólico renal"
        },
        {
            "conceptId": 18,
            "term": "Demencia"
        },
        {
            "conceptId": 19,
            "term": "Desgarro muscular"
        },
        {
            "conceptId": 20,
            "term": "Deshidratación"
        },
        {
            "conceptId": 21,
            "term": "Diabetes Mellitus"
        },
        {
            "conceptId": 22,
            "term": "Dishidrosis"
        },
        {
            "conceptId": 23,
            "term": "Dislipemia"
        },
        {
            "conceptId": 24,
            "term": "Dispepsia"
        },
        {
            "conceptId": 25,
            "term": "Déficit de atención"
        },
        {
            "conceptId": 26,
            "term": "Déficit vitamínico"
        },
        {
            "conceptId": 27,
            "term": "Eccema"
        },
        {
            "conceptId": 28,
            "term": "Enfermedad celíaca"
        },
        {
            "conceptId": 29,
            "term": "Enfermedad cerebrovascular"
        },
        {
            "conceptId": 30,
            "term": "Enfermedad coronaria"
        },
        {
            "conceptId": 31,
            "term": "Enfermedad oncológica"
        },
        {
            "conceptId": 32,
            "term": "EPOC"
        },
        {
            "conceptId": 33,
            "term": "Equímosis"
        },
        {
            "conceptId": 34,
            "term": "Erisipela"
        },
        {
            "conceptId": 35,
            "term": "Eritema nodoso"
        },
        {
            "conceptId": 36,
            "term": "Escabiosis"
        },
        {
            "conceptId": 37,
            "term": "Extrapiramidalismo"
        },
        {
            "conceptId": 38,
            "term": "Faringitis"
        },
        {
            "conceptId": 39,
            "term": "Fibromialgia reumática"
        },
        {
            "conceptId": 40,
            "term": "Fobia"
        },
        {
            "conceptId": 41,
            "term": "Galactorrea"
        },
        {
            "conceptId": 42,
            "term": "Gastritis aguda"
        },
        {
            "conceptId": 43,
            "term": "Gastroenteritis aguda"
        },
        {
            "conceptId": 44,
            "term": "Ginecomastia"
        },
        {
            "conceptId": 45,
            "term": "Golpe de calor"
        },
        {
            "conceptId": 46,
            "term": "Hematoma"
        },
        {
            "conceptId": 47,
            "term": "Hemorragia digestiva"
        },
        {
            "conceptId": 48,
            "term": "Hepatitis"
        },
        {
            "conceptId": 49,
            "term": "Herpes simple"
        },
        {
            "conceptId": 50,
            "term": "Herpes Zoster"
        },
        {
            "conceptId": 51,
            "term": "Hiperhidrosis"
        },
        {
            "conceptId": 52,
            "term": "Hipertensión arterial"
        },
        {
            "conceptId": 53,
            "term": "Hipertiroidismo"
        },
        {
            "conceptId": 54,
            "term": "Hipotiroidismo"
        },
        {
            "conceptId": 55,
            "term": "Infección de vía aérea superior"
        },
        {
            "conceptId": 56,
            "term": "Infección urinaria alta"
        },
        {
            "conceptId": 57,
            "term": "Infección urinaria baja"
        },
        {
            "conceptId": 58,
            "term": "Insuficiencia cardíaca"
        },
        {
            "conceptId": 59,
            "term": "Intoxicación alimentaria"
        },
        {
            "conceptId": 60,
            "term": "Laringitis"
        },
        {
            "conceptId": 61,
            "term": "Lumbalgia"
        },
        {
            "conceptId": 62,
            "term": "Lumbociatalgia"
        },
        {
            "conceptId": 63,
            "term": "Micosis cutánea"
        },
        {
            "conceptId": 64,
            "term": "Migraña"
        },
        {
            "conceptId": 65,
            "term": "Mononucleosis"
        },
        {
            "conceptId": 66,
            "term": "Neumonía"
        },
        {
            "conceptId": 67,
            "term": "Obesidad"
        },
        {
            "conceptId": 68,
            "term": "Onicomicosis"
        },
        {
            "conceptId": 69,
            "term": "Osteopenia"
        },
        {
            "conceptId": 70,
            "term": "Osteoporosis"
        },
        {
            "conceptId": 71,
            "term": "Otitis externa"
        },
        {
            "conceptId": 72,
            "term": "Otitis media"
        },
        {
            "conceptId": 73,
            "term": "Parasitosis"
        },
        {
            "conceptId": 74,
            "term": "Pitiriasis Rosada de Gilbert"
        },
        {
            "conceptId": 75,
            "term": "Pitiriasis Versicolor"
        },
        {
            "conceptId": 76,
            "term": "Prostatitis"
        },
        {
            "conceptId": 77,
            "term": "Prurigo solar"
        },
        {
            "conceptId": 78,
            "term": "Psicosis"
        },
        {
            "conceptId": 79,
            "term": "Psoriasis"
        },
        {
            "conceptId": 80,
            "term": "Pénfigo"
        },
        {
            "conceptId": 81,
            "term": "Pérdida de peso"
        },
        {
            "conceptId": 82,
            "term": "Quemadura solar"
        },
        {
            "conceptId": 83,
            "term": "Queratitis"
        },
        {
            "conceptId": 84,
            "term": "Quinta enfermedad"
        },
        {
            "conceptId": 85,
            "term": "Reflujo gastroesofágico"
        },
        {
            "conceptId": 86,
            "term": "Resfrío Común"
        },
        {
            "conceptId": 87,
            "term": "Rinitis alérgica"
        },
        {
            "conceptId": 88,
            "term": "Rubeola"
        },
        {
            "conceptId": 89,
            "term": "Sarampión"
        },
        {
            "conceptId": 90,
            "term": "Sarcoma de Kaposi"
        },
        {
            "conceptId": 91,
            "term": "Sindrome anemico"
        },
        {
            "conceptId": 92,
            "term": "Sindrome de intestino irritable"
        },
        {
            "conceptId": 93,
            "term": "Sindrome depresivo"
        },
        {
            "conceptId": 94,
            "term": "Sindrome febril prolongado"
        },
        {
            "conceptId": 95,
            "term": "Sindrome gripal"
        },
        {
            "conceptId": 96,
            "term": "Sinusitis"
        },
        {
            "conceptId": 97,
            "term": "Sífilis"
        },
        {
            "conceptId": 98,
            "term": "Tabaquismo"
        },
        {
            "conceptId": 99,
            "term": "Temblor esencial"
        },
        {
            "conceptId": 100,
            "term": "Tiroiditis"
        },
        {
            "conceptId": 101,
            "term": "Tiña capitis"
        },
        {
            "conceptId": 102,
            "term": "Tiña corporis"
        },
        {
            "conceptId": 103,
            "term": "Trastorno obsesivo"
        },
        {
            "conceptId": 104,
            "term": "Trastorno por ansiedad"
        },
        {
            "conceptId": 105,
            "term": "Traumatismo múltiple"
        },
        {
            "conceptId": 106,
            "term": "Ureritis"
        },
        {
            "conceptId": 107,
            "term": "Urticaria"
        },
        {
            "conceptId": 108,
            "term": "Varicela"
        },
        {
            "conceptId": 109,
            "term": "Vértigo posicional benigno"
        }
    ],
    "message": "The diagnoses were showed."
}

HTTP Request

GET api/diagnosis/all

Get all diagnosis.

Example request:

curl -X GET \
    -G "http://localhost/api/diagnosis/listing" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/diagnosis/listing"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": []
}

HTTP Request

GET api/diagnosis/listing

Retrieve the dashboard information.

Example request:

curl -X GET \
    -G "http://localhost/api/doctor/dashboard" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/doctor/dashboard"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/doctor/dashboard

Retrieve the doctors information.

Example request:

curl -X GET \
    -G "http://localhost/api/doctor/my-dashboard" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/doctor/my-dashboard"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/doctor/my-dashboard

Get logged doctors details.

Example request:

curl -X GET \
    -G "http://localhost/api/doctor/me" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/doctor/me"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/doctor/me

Get all doctors.

Example request:

curl -X GET \
    -G "http://localhost/api/doctor/listing" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/doctor/listing"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/doctor/listing

Retrieve the history information.

Example request:

curl -X GET \
    -G "http://localhost/api/doctor/history" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/doctor/history"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/doctor/history

General status doctors

Example request:

curl -X GET \
    -G "http://localhost/api/doctor/available" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/doctor/available"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/doctor/available

api/doctor/keep-alive

Example request:

curl -X GET \
    -G "http://localhost/api/doctor/keep-alive" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/doctor/keep-alive"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/doctor/keep-alive

Get doctor details.

Example request:

curl -X GET \
    -G "http://localhost/api/doctor/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/doctor/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/doctor/{doctor}

NotAttend A Doctor can trigger an event when it was not attend.

Example request:

curl -X GET \
    -G "http://localhost/api/doctor/1/not-attend/event" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/doctor/1/not-attend/event"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/doctor/{doctor}/not-attend/event

Get attention time by Doctors

Obtain agenda, availables and unavailables times of a Doctor

Example request:

curl -X GET \
    -G "http://localhost/api/doctor/1/attention" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/doctor/1/attention"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/doctor/{doctor}/attention

Change the doctor status.

Example request:

curl -X PUT \
    "http://localhost/api/doctor/status/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/doctor/status/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

PUT api/doctor/status/{id}

Enable or disable a doctor.

Example request:

curl -X POST \
    "http://localhost/api/doctor/enable" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/doctor/enable"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

POST api/doctor/enable

Create a doctor.

Example request:

curl -X POST \
    "http://localhost/api/doctor/store" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/doctor/store"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

POST api/doctor/store

Register as a doctor.

Example request:

curl -X POST \
    "http://localhost/api/doctor/register" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/doctor/register"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

POST api/doctor/register

Update a doctor.

Example request:

curl -X POST \
    "http://localhost/api/doctor/update/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/doctor/update/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

POST api/doctor/update/{id}

Update logged doctor.

Example request:

curl -X POST \
    "http://localhost/api/doctor/update" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/doctor/update"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

POST api/doctor/update

Update a doctors password.

Example request:

curl -X POST \
    "http://localhost/api/doctor/change/password" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/doctor/change/password"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

POST api/doctor/change/password

Update a doctors call rate.

Example request:

curl -X POST \
    "http://localhost/api/doctor/call-rate" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/doctor/call-rate"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

POST api/doctor/call-rate

JWT login.

Example request:

curl -X POST \
    "http://localhost/api/doctor/login" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/doctor/login"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "identification": [
        "FIELD_REQUIRED"
    ],
    "password": [
        "FIELD_REQUIRED"
    ]
}

HTTP Request

POST api/doctor/login

api/doctor/block

Example request:

curl -X POST \
    "http://localhost/api/doctor/block" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/doctor/block"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

POST api/doctor/block

Refresh token

Example request:

curl -X POST \
    "http://localhost/api/doctor/refresh-token" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/doctor/refresh-token"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (401):

{
    "error": "Token is Invalid"
}

HTTP Request

POST api/doctor/refresh-token

Delete a doctor.

Example request:

curl -X DELETE \
    "http://localhost/api/doctor/delete/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/doctor/delete/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

DELETE api/doctor/delete/{doctor}

Get all enrollments type

Example request:

curl -X GET \
    -G "http://localhost/api/enrollment/all" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/enrollment/all"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": [
        {
            "id": 1,
            "name": "Matricula Nacional"
        },
        {
            "id": 2,
            "name": "Matricula Buenos Aires"
        },
        {
            "id": 3,
            "name": "Matricula Catamarca"
        },
        {
            "id": 4,
            "name": "Matricula Chaco"
        },
        {
            "id": 5,
            "name": "Matricula Chubut"
        },
        {
            "id": 6,
            "name": "Matricula Córdoba"
        },
        {
            "id": 7,
            "name": "Matricula Corrientes"
        },
        {
            "id": 8,
            "name": "Matricula Entre Ríos"
        },
        {
            "id": 9,
            "name": "Matricula Formosa"
        },
        {
            "id": 10,
            "name": "Matricula Jujuy"
        },
        {
            "id": 11,
            "name": "Matricula La Pampa"
        },
        {
            "id": 12,
            "name": "Matricula La Rioja"
        },
        {
            "id": 13,
            "name": "Matricula Mendoza"
        },
        {
            "id": 14,
            "name": "Matricula Misiones"
        },
        {
            "id": 15,
            "name": "Matricula Neuquén"
        },
        {
            "id": 16,
            "name": "Matricula Río Negro"
        },
        {
            "id": 17,
            "name": "Matricula Salta"
        },
        {
            "id": 18,
            "name": "Matricula San Juan"
        },
        {
            "id": 19,
            "name": "Matricula San Luis"
        },
        {
            "id": 20,
            "name": "Matricula Santa Cruz"
        },
        {
            "id": 21,
            "name": "Matricula Santa Fe"
        },
        {
            "id": 22,
            "name": "Matricula Santiago del Estero"
        },
        {
            "id": 23,
            "name": "Matricula Tierra del Fuego"
        },
        {
            "id": 24,
            "name": "Matricula Tucumán"
        },
        {
            "id": 25,
            "name": "Zetta Hoeger"
        },
        {
            "id": 26,
            "name": "Stefan Russel"
        }
    ]
}

HTTP Request

GET api/enrollment/all

Trigger alert call event.

Example request:

curl -X GET \
    -G "http://localhost/api/event/1/alert-call/" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/event/1/alert-call/"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (401):

{
    "error": "Token is Invalid"
}

HTTP Request

GET api/event/{call}/alert-call/{doctor?}

Get all groups of permission

Example request:

curl -X GET \
    -G "http://localhost/api/permission/group/all" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/permission/group/all"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/permission/group/all

Get a group by ID

Example request:

curl -X GET \
    -G "http://localhost/api/permission/group/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/permission/group/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (404):

{
    "status": "error",
    "message": "PermissionGroup not found"
}

HTTP Request

GET api/permission/group/{permissionGroup}

Update a PermissionGroup by Id

Example request:

curl -X PUT \
    "http://localhost/api/permission/group/update/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/permission/group/update/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (404):

{
    "status": "error",
    "message": "PermissionGroup not found"
}

HTTP Request

PUT api/permission/group/update/{permissionGroup}

Create a PermissionGroup

Example request:

curl -X POST \
    "http://localhost/api/permission/group/store" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/permission/group/store"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

POST api/permission/group/store

Delete a PermissionGroup by Id

Example request:

curl -X DELETE \
    "http://localhost/api/permission/group/delete/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/permission/group/delete/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (404):

{
    "status": "error",
    "message": "PermissionGroup not found"
}

HTTP Request

DELETE api/permission/group/delete/{permissionGroup}

Get all users of a group of permission

Example request:

curl -X GET \
    -G "http://localhost/api/permission/group/1/user/all" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/permission/group/1/user/all"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (404):

{
    "status": "error",
    "message": "PermissionGroup not found"
}

HTTP Request

GET api/permission/group/{permissionGroup}/user/all

Attach user to a PermissionGroup

Example request:

curl -X PUT \
    "http://localhost/api/permission/group/1/user/store" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/permission/group/1/user/store"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (404):

{
    "status": "error",
    "message": "PermissionGroup not found"
}

HTTP Request

PUT api/permission/group/{permissionGroup}/user/store

Detach user from a PermissionGroup

Example request:

curl -X PUT \
    "http://localhost/api/permission/group/1/user/delete" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/permission/group/1/user/delete"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (404):

{
    "status": "error",
    "message": "PermissionGroup not found"
}

HTTP Request

PUT api/permission/group/{permissionGroup}/user/delete

Get all functionalities

Example request:

curl -X GET \
    -G "http://localhost/api/permission/functionality/all" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/permission/functionality/all"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/permission/functionality/all

Get a functionality by ID

Example request:

curl -X GET \
    -G "http://localhost/api/permission/functionality/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/permission/functionality/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (404):

{
    "status": "error",
    "message": "Functionality not found"
}

HTTP Request

GET api/permission/functionality/{functionality}

Update a Functionality by Id

Example request:

curl -X PUT \
    "http://localhost/api/permission/functionality/update/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/permission/functionality/update/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (404):

{
    "status": "error",
    "message": "Functionality not found"
}

HTTP Request

PUT api/permission/functionality/update/{functionality}

Create a Functionality

Example request:

curl -X POST \
    "http://localhost/api/permission/functionality/store" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/permission/functionality/store"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

POST api/permission/functionality/store

Delete a Functionality by Id

Example request:

curl -X DELETE \
    "http://localhost/api/permission/functionality/delete/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/permission/functionality/delete/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (404):

{
    "status": "error",
    "message": "Functionality not found"
}

HTTP Request

DELETE api/permission/functionality/delete/{functionality}

Get all the users locked by functionality

Example request:

curl -X GET \
    -G "http://localhost/api/permission/functionality/1/user/all" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/permission/functionality/1/user/all"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (404):

{
    "status": "error",
    "message": "Functionality not found"
}

HTTP Request

GET api/permission/functionality/{functionality}/user/all

Get all the groups locked by functionality

Example request:

curl -X GET \
    -G "http://localhost/api/permission/functionality/1/group/all" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/permission/functionality/1/group/all"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (404):

{
    "status": "error",
    "message": "Functionality not found"
}

HTTP Request

GET api/permission/functionality/{functionality}/group/all

Attach user in Functionality

Example request:

curl -X PUT \
    "http://localhost/api/permission/functionality/1/user/lock" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/permission/functionality/1/user/lock"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (404):

{
    "status": "error",
    "message": "Functionality not found"
}

HTTP Request

PUT api/permission/functionality/{functionality}/user/lock

Detach user in Functionality

Example request:

curl -X PUT \
    "http://localhost/api/permission/functionality/1/user/unlock" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/permission/functionality/1/user/unlock"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (404):

{
    "status": "error",
    "message": "Functionality not found"
}

HTTP Request

PUT api/permission/functionality/{functionality}/user/unlock

Attach group in Functionality

Example request:

curl -X PUT \
    "http://localhost/api/permission/functionality/1/group/lock" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/permission/functionality/1/group/lock"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (404):

{
    "status": "error",
    "message": "Functionality not found"
}

HTTP Request

PUT api/permission/functionality/{functionality}/group/lock

Detach group in Functionality

Example request:

curl -X PUT \
    "http://localhost/api/permission/functionality/1/group/unlock" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/permission/functionality/1/group/unlock"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (404):

{
    "status": "error",
    "message": "Functionality not found"
}

HTTP Request

PUT api/permission/functionality/{functionality}/group/unlock

Method used to send Notification through Harold to Support team

Example request:

curl -X POST \
    "http://localhost/api/global/error" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/global/error"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "title": [
        "FIELD_REQUIRED"
    ],
    "endpoint": [
        "FIELD_REQUIRED"
    ],
    "frontend": [
        "FIELD_REQUIRED"
    ],
    "message": [
        "FIELD_REQUIRED"
    ]
}

HTTP Request

POST api/global/error

Get all images from a call.

Example request:

curl -X GET \
    -G "http://localhost/api/image/images/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/image/images/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/image/images/{call}

Add note to the image.

Example request:

curl -X PUT \
    "http://localhost/api/image/1/note" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/image/1/note"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (404):

{
    "status": "error",
    "message": "Image not found"
}

HTTP Request

PUT api/image/{image}/note

Save an image of a call.

Example request:

curl -X POST \
    "http://localhost/api/image/1/call" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/image/1/call"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

POST api/image/{call}/call

Delete image from DB and AWS storage

Example request:

curl -X DELETE \
    "http://localhost/api/image/delete/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/image/delete/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (404):

{
    "status": "error",
    "message": "Image not found"
}

HTTP Request

DELETE api/image/delete/{image}

Retrieve all medical coverage for select purpose.

Example request:

curl -X GET \
    -G "http://localhost/api/medical-coverage" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/medical-coverage"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": [
        {
            "id": 1,
            "name": ""
        },
        {
            "id": 2,
            "name": "Osde"
        }
    ]
}

HTTP Request

GET api/medical-coverage

Get all medical coverages.

Example request:

curl -X GET \
    -G "http://localhost/api/medical-coverage/all" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/medical-coverage/all"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 2,
                "medical_name": "Osde",
                "business_name": "Osde",
                "cuit": 23336573769,
                "plans": [
                    {
                        "id": 2,
                        "name": "Oro",
                        "deleted_at": null
                    },
                    {
                        "id": 3,
                        "name": "Plata",
                        "deleted_at": null
                    },
                    {
                        "id": 4,
                        "name": "Bronce",
                        "deleted_at": null
                    }
                ]
            }
        ],
        "first_page_url": "http:\/\/localhost\/api\/medical-coverage\/all?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "http:\/\/localhost\/api\/medical-coverage\/all?page=1",
        "next_page_url": null,
        "path": "http:\/\/localhost\/api\/medical-coverage\/all",
        "per_page": 1,
        "prev_page_url": null,
        "to": 1,
        "total": 1
    }
}

HTTP Request

GET api/medical-coverage/all

Get the medical coverage details.

Example request:

curl -X GET \
    -G "http://localhost/api/medical-coverage/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/medical-coverage/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": {
        "id": 1,
        "name": "OSDE",
        "business_name": "",
        "cuit": 0,
        "plans": []
    }
}

HTTP Request

GET api/medical-coverage/{medicalCoverage}

Update a medical coverage.

Example request:

curl -X PUT \
    "http://localhost/api/medical-coverage/update/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/medical-coverage/update/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "name": [
        "FIELD_REQUIRED"
    ],
    "business_name": [
        "FIELD_REQUIRED"
    ],
    "cuit": [
        "FIELD_REQUIRED"
    ],
    "plans": [
        "FIELD_REQUIRED"
    ]
}

HTTP Request

PUT api/medical-coverage/update/{medicalCoverage}

Create a medical coverage.

Example request:

curl -X POST \
    "http://localhost/api/medical-coverage/store" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/medical-coverage/store"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "name": [
        "FIELD_REQUIRED"
    ],
    "business_name": [
        "FIELD_REQUIRED"
    ],
    "cuit": [
        "FIELD_REQUIRED"
    ],
    "plans": [
        "FIELD_REQUIRED"
    ]
}

HTTP Request

POST api/medical-coverage/store

Delete a medical coverage.

Example request:

curl -X DELETE \
    "http://localhost/api/medical-coverage/delete/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/medical-coverage/delete/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": {
        "eliminated": true
    },
    "message": "The medical coverage was eliminated successfully."
}

HTTP Request

DELETE api/medical-coverage/delete/{medicalCoverage}

Save a message of a call.

Example request:

curl -X POST \
    "http://localhost/api/message/store" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/message/store"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "call_id": [
        "FIELD_REQUIRED"
    ],
    "user_id": [
        "FIELD_REQUIRED"
    ],
    "nick_name": [
        "FIELD_REQUIRED"
    ],
    "message": [
        "FIELD_REQUIRED"
    ]
}

HTTP Request

POST api/message/store

Get logged patient details.

Example request:

curl -X GET \
    -G "http://localhost/api/patient/me" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/patient/me"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (401):

{
    "error": "Token is Invalid"
}

HTTP Request

GET api/patient/me

Get patients list.

Example request:

curl -X GET \
    -G "http://localhost/api/patient/listing" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/patient/listing"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": [
        {
            "id": 1,
            "user_id": 7,
            "first_name": "Lucius el Admin",
            "last_name": "Literal",
            "identification": "27369067",
            "gender": "Male",
            "birth_date": "2001-09-27",
            "pin": null,
            "particular": 1,
            "email": "admin@test.com",
            "cellphone_country": "67",
            "cellphone_area": "933",
            "cellphone_number": "3243546",
            "avatar": "https:\/\/s3-sa-east-1.amazonaws.com\/development-telemedicine-images\/1",
            "enabled": 1,
            "mandatory_password_change": 0
        },
        {
            "id": 2,
            "user_id": 8,
            "first_name": "Julio",
            "last_name": "Sánchez",
            "identification": "33657376",
            "gender": null,
            "birth_date": "1988-12-16",
            "pin": 3292,
            "particular": 0,
            "email": "jsan",
            "cellphone_country": "54",
            "cellphone_area": "2954",
            "cellphone_number": "644097",
            "avatar": "",
            "enabled": 1,
            "mandatory_password_change": 0
        },
        {
            "id": 3,
            "user_id": 9,
            "first_name": "Pepe",
            "last_name": "Pompin",
            "identification": "11919633",
            "gender": "Male",
            "birth_date": "1988-12-16",
            "pin": null,
            "particular": 1,
            "email": "jsanchez@test.com",
            "cellphone_country": null,
            "cellphone_area": null,
            "cellphone_number": "2954644097",
            "avatar": null,
            "enabled": 1,
            "mandatory_password_change": 0
        },
        {
            "id": 4,
            "user_id": 10,
            "first_name": "Pepe",
            "last_name": "Pompin",
            "identification": "11919634",
            "gender": "Male",
            "birth_date": "1988-12-16",
            "pin": null,
            "particular": 1,
            "email": "jsanchez@test.com.ar",
            "cellphone_country": null,
            "cellphone_area": null,
            "cellphone_number": "2954644097",
            "avatar": null,
            "enabled": 1,
            "mandatory_password_change": 0
        },
        {
            "id": 5,
            "user_id": 11,
            "first_name": "Pepe",
            "last_name": "Pompin",
            "identification": "11919635",
            "gender": "Male",
            "birth_date": "1988-12-16",
            "pin": null,
            "particular": 1,
            "email": "jsanchez@medicosonline.com.ar",
            "cellphone_country": null,
            "cellphone_area": null,
            "cellphone_number": "2954644097",
            "avatar": null,
            "enabled": 1,
            "mandatory_password_change": 1
        },
        {
            "id": 6,
            "user_id": 13,
            "first_name": "Heidi Fay",
            "last_name": "Auer",
            "identification": "14323225",
            "gender": "Male",
            "birth_date": "2012-05-31",
            "pin": null,
            "particular": 1,
            "email": "maxie.fisher@example.org",
            "cellphone_country": "67",
            "cellphone_area": "432",
            "cellphone_number": "210.618.4648 x72384",
            "avatar": "https:\/\/lorempixel.com\/400\/400\/?33390",
            "enabled": 1,
            "mandatory_password_change": 0
        },
        {
            "id": 7,
            "user_id": 14,
            "first_name": "Blair Steuber",
            "last_name": "Bins",
            "identification": "66761761",
            "gender": "Male",
            "birth_date": "1990-12-23",
            "pin": null,
            "particular": 1,
            "email": "mtorp@example.net",
            "cellphone_country": "52",
            "cellphone_area": "972",
            "cellphone_number": "572-788-4104",
            "avatar": "https:\/\/lorempixel.com\/400\/400\/?67540",
            "enabled": 1,
            "mandatory_password_change": 0
        },
        {
            "id": 8,
            "user_id": 16,
            "first_name": "Cale Kuphal DDS",
            "last_name": "Gottlieb",
            "identification": "13582760",
            "gender": "Male",
            "birth_date": "1982-01-17",
            "pin": null,
            "particular": 1,
            "email": "abigayle84@example.net",
            "cellphone_country": "88",
            "cellphone_area": "379",
            "cellphone_number": "+1.569.507.3765",
            "avatar": "https:\/\/lorempixel.com\/400\/400\/?27801",
            "enabled": 1,
            "mandatory_password_change": 0
        },
        {
            "id": 9,
            "user_id": 17,
            "first_name": "Dejuan Heaney",
            "last_name": "Marquardt",
            "identification": "31013673",
            "gender": "Male",
            "birth_date": "1971-11-15",
            "pin": null,
            "particular": 1,
            "email": "sfranecki@example.com",
            "cellphone_country": "78",
            "cellphone_area": "257",
            "cellphone_number": "(565) 868-4690 x295",
            "avatar": "https:\/\/lorempixel.com\/400\/400\/?77671",
            "enabled": 1,
            "mandatory_password_change": 0
        }
    ]
}

HTTP Request

GET api/patient/listing

Retrieve the history information.

Example request:

curl -X GET \
    -G "http://localhost/api/patient/history" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/patient/history"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (401):

{
    "error": "Token is Invalid"
}

HTTP Request

GET api/patient/history

Get logged patient details.

Example request:

curl -X GET \
    -G "http://localhost/api/patient/family" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/patient/family"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (401):

{
    "error": "Token is Invalid"
}

HTTP Request

GET api/patient/family

NotAttend An Patient can trigger an event when it was not attend.

Example request:

curl -X GET \
    -G "http://localhost/api/patient/1/not-attend/event" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/patient/1/not-attend/event"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": [],
    "message": "The event was triggered successfully."
}

HTTP Request

GET api/patient/{patient}/not-attend/event

ApprovedCoverage Patient receive success/rejected notification after admin validates medical coverage

Example request:

curl -X GET \
    -G "http://localhost/api/patient/1/approved/event" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/patient/1/approved/event"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": [],
    "message": "Event sent successfully."
}

HTTP Request

GET api/patient/{patient}/approved/event

Validate identification patient

Example request:

curl -X GET \
    -G "http://localhost/api/patient/identification/validate" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/patient/identification/validate"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": {
        "valid": true
    },
    "message": "The identification is valid"
}

HTTP Request

GET api/patient/identification/validate

Store An Admin can create a patient (Admin site).

Example request:

curl -X POST \
    "http://localhost/api/patient/store" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/patient/store"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "first_name": [
        "FIELD_REQUIRED"
    ],
    "last_name": [
        "FIELD_REQUIRED"
    ],
    "identification_id": [
        "FIELD_REQUIRED"
    ],
    "birth_date": [
        "FIELD_REQUIRED"
    ],
    "symptoms": [
        "FIELD_REQUIRED"
    ],
    "identification": [
        "FIELD_REQUIRED"
    ],
    "particular": [
        "FIELD_REQUIRED"
    ],
    "office_id": [
        "FIELD_REQUIRED"
    ],
    "medical_coverage_id": [
        "FIELD_REQUIRED"
    ],
    "health_insurance": [
        "FIELD_REQUIRED"
    ],
    "plan_id": [
        "FIELD_REQUIRED"
    ]
}

HTTP Request

POST api/patient/store

Create a patient skipping pass but adding symptoms (Patient site).

Example request:

curl -X POST \
    "http://localhost/api/patient/create" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/patient/create"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "first_name": [
        "FIELD_REQUIRED"
    ],
    "last_name": [
        "FIELD_REQUIRED"
    ],
    "identification_id": [
        "FIELD_REQUIRED"
    ],
    "birth_date": [
        "FIELD_REQUIRED"
    ],
    "symptoms": [
        "FIELD_REQUIRED"
    ],
    "identification": [
        "FIELD_REQUIRED"
    ],
    "cellphone_area": [
        "FIELD_REQUIRED"
    ],
    "cellphone_number": [
        "FIELD_REQUIRED"
    ],
    "email": [
        "FIELD_REQUIRED"
    ],
    "address": [
        "FIELD_REQUIRED"
    ],
    "postal_code": [
        "FIELD_REQUIRED"
    ],
    "province_id": [
        "FIELD_REQUIRED"
    ],
    "city_id": [
        "FIELD_REQUIRED"
    ],
    "particular": [
        "FIELD_REQUIRED"
    ],
    "medical_coverage_id": [
        "FIELD_REQUIRED"
    ],
    "health_insurance": [
        "FIELD_REQUIRED"
    ],
    "plan_id": [
        "FIELD_REQUIRED"
    ]
}

HTTP Request

POST api/patient/create

Create a new Patient with minimum requisites

Example request:

curl -X POST \
    "http://localhost/api/patient/simple/create" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/patient/simple/create"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "cellphone_number": [
        "FIELD_REQUIRED"
    ],
    "email": [
        "FIELD_REQUIRED"
    ],
    "first_name": [
        "FIELD_REQUIRED"
    ],
    "gender": [
        "FIELD_REQUIRED"
    ],
    "identification": [
        "FIELD_REQUIRED"
    ],
    "identification_id": [
        "FIELD_REQUIRED"
    ],
    "last_name": [
        "FIELD_REQUIRED"
    ],
    "birth_date": [
        "FIELD_REQUIRED"
    ]
}

HTTP Request

POST api/patient/simple/create

Enable or disable a patient.

Example request:

curl -X POST \
    "http://localhost/api/patient/enable" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/patient/enable"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "patient_id": [
        "FIELD_REQUIRED"
    ],
    "enabled": [
        "FIELD_REQUIRED"
    ]
}

HTTP Request

POST api/patient/enable

Enable or disable the obligation of changing password.

Example request:

curl -X POST \
    "http://localhost/api/patient/mandatory-password-change" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/patient/mandatory-password-change"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "patient_id": [
        "FIELD_REQUIRED"
    ],
    "mandatory_password_change": [
        "FIELD_REQUIRED"
    ]
}

HTTP Request

POST api/patient/mandatory-password-change

Update a patient.

Example request:

curl -X POST \
    "http://localhost/api/patient/update" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/patient/update"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

POST api/patient/update

Update a patients password.

Example request:

curl -X POST \
    "http://localhost/api/patient/change/password" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/patient/change/password"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "password": [
            "The password field is required."
        ],
        "new_password": [
            "The new password field is required."
        ]
    }
}

HTTP Request

POST api/patient/change/password

JWT login.

Example request:

curl -X POST \
    "http://localhost/api/patient/login" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/patient/login"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "identification": [
            "The identification field is required."
        ],
        "password": [
            "The password field is required."
        ]
    }
}

HTTP Request

POST api/patient/login

Create related patient (Patient site).

Example request:

curl -X POST \
    "http://localhost/api/patient/register/other" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/patient/register/other"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "first_name": [
        "FIELD_REQUIRED"
    ],
    "last_name": [
        "FIELD_REQUIRED"
    ],
    "identification_id": [
        "FIELD_REQUIRED"
    ],
    "birth_date": [
        "FIELD_REQUIRED"
    ],
    "cellphone_number": [
        "FIELD_REQUIRED"
    ],
    "gender": [
        "FIELD_REQUIRED"
    ],
    "email": [
        "FIELD_REQUIRED"
    ],
    "password": [
        "FIELD_REQUIRED"
    ],
    "identification": [
        "FIELD_REQUIRED"
    ],
    "related_patient_id": [
        "FIELD_REQUIRED"
    ],
    "relationship": [
        "FIELD_REQUIRED"
    ]
}

HTTP Request

POST api/patient/register/other

Create related patients (Patient site).

Example request:

curl -X POST \
    "http://localhost/api/patient/register/others" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/patient/register/others"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": [],
    "message": "The patients were saved successfully."
}

HTTP Request

POST api/patient/register/others

Create a patient with pass (Patient site).

Example request:

curl -X POST \
    "http://localhost/api/patient/register" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/patient/register"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "first_name": [
        "FIELD_REQUIRED"
    ],
    "last_name": [
        "FIELD_REQUIRED"
    ],
    "identification_id": [
        "FIELD_REQUIRED"
    ],
    "birth_date": [
        "FIELD_REQUIRED"
    ],
    "cellphone_number": [
        "FIELD_REQUIRED"
    ],
    "gender": [
        "FIELD_REQUIRED"
    ],
    "email": [
        "FIELD_REQUIRED"
    ],
    "password": [
        "FIELD_REQUIRED"
    ],
    "identification": [
        "FIELD_REQUIRED"
    ],
    "terms_version": [
        "FIELD_REQUIRED"
    ]
}

HTTP Request

POST api/patient/register

Get the office listing.

Example request:

curl -X GET \
    -G "http://localhost/api/office/all" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/office/all"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": [
        {
            "id": 1,
            "name": "Mol",
            "office_type": {
                "id": 1,
                "name": "Fisico"
            },
            "province": {
                "id": 21,
                "name": "Santa Fé"
            },
            "city": {
                "id": 1111,
                "name": "Cabeza De Chancho"
            },
            "virtual": false,
            "available_times": [],
            "address": "Roca",
            "house_number": "2748",
            "floor": "",
            "postal_code": "3061",
            "status": "Available",
            "phone_country": null,
            "phone_area": null,
            "phone_number": null,
            "email": null
        },
        {
            "id": 2,
            "name": "Mol",
            "office_type": {
                "id": 1,
                "name": "Fisico"
            },
            "province": {
                "id": 21,
                "name": "Santa Fé"
            },
            "city": {
                "id": 1111,
                "name": "Cabeza De Chancho"
            },
            "virtual": false,
            "available_times": [],
            "address": "Roca",
            "house_number": "2748",
            "floor": "",
            "postal_code": "3061",
            "status": "Available",
            "phone_country": null,
            "phone_area": null,
            "phone_number": null,
            "email": null
        },
        {
            "id": 3,
            "name": "Jade",
            "office_type": {
                "id": 1,
                "name": "Fisico"
            },
            "province": {
                "id": 21,
                "name": "Santa Fé"
            },
            "city": {
                "id": 1111,
                "name": "Cabeza De Chancho"
            },
            "virtual": false,
            "available_times": [],
            "address": "Roca",
            "house_number": "2748",
            "floor": "",
            "postal_code": "3061",
            "status": "Available",
            "phone_country": null,
            "phone_area": null,
            "phone_number": null,
            "email": null
        },
        {
            "id": 4,
            "name": "test123",
            "office_type": {
                "id": 1,
                "name": "Fisico"
            },
            "province": [],
            "city": [],
            "virtual": false,
            "available_times": [],
            "address": null,
            "house_number": null,
            "floor": null,
            "postal_code": null,
            "status": "Available",
            "phone_country": null,
            "phone_area": null,
            "phone_number": null,
            "email": null
        }
    ]
}

HTTP Request

GET api/office/all

Get the available physical offices.

Example request:

curl -X GET \
    -G "http://localhost/api/office/physical-list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/office/physical-list"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": [
        {
            "id": 1,
            "name": "Mol"
        },
        {
            "id": 2,
            "name": "Mol"
        },
        {
            "id": 3,
            "name": "Jade"
        },
        {
            "id": 4,
            "name": "test123"
        }
    ]
}

HTTP Request

GET api/office/physical-list

Get the office details.

Example request:

curl -X GET \
    -G "http://localhost/api/office/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/office/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": {
        "id": 1,
        "name": "Mol",
        "office_type": {
            "id": 1,
            "name": "Fisico"
        },
        "province": {
            "id": 21,
            "name": "Santa Fé"
        },
        "city": {
            "id": 1111,
            "name": "Cabeza De Chancho"
        },
        "virtual": false,
        "available_times": [],
        "address": "Roca",
        "house_number": "2748",
        "floor": "",
        "postal_code": "3061",
        "status": "Available",
        "phone_country": null,
        "phone_area": null,
        "phone_number": null,
        "email": null
    }
}

HTTP Request

GET api/office/{office}

Update an office.

Example request:

curl -X PUT \
    "http://localhost/api/office/update/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/office/update/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "office_type_id": [
        "FIELD_REQUIRED"
    ],
    "name": [
        "FIELD_REQUIRED"
    ]
}

HTTP Request

PUT api/office/update/{office}

Create a new office.

Example request:

curl -X POST \
    "http://localhost/api/office/store" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/office/store"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "office_type_id": [
        "FIELD_REQUIRED"
    ],
    "name": [
        "FIELD_REQUIRED"
    ]
}

HTTP Request

POST api/office/store

Delete an office.

Example request:

curl -X DELETE \
    "http://localhost/api/office/delete/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/office/delete/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": {
        "eliminated": true
    },
    "message": "The doctor's office was eliminated successfully."
}

HTTP Request

DELETE api/office/delete/{office}

Get all office type

Example request:

curl -X GET \
    -G "http://localhost/api/office-type/all" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/office-type/all"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": [
        {
            "id": 1,
            "name": "Fisico"
        },
        {
            "id": 2,
            "name": "Virtual"
        }
    ]
}

HTTP Request

GET api/office-type/all

Generate a Payu payment.

Example request:

curl -X POST \
    "http://localhost/api/payment/payu/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/payment/payu/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "credit_card_number": [
        "FIELD_REQUIRED"
    ],
    "credit_card_expiration_date": [
        "FIELD_REQUIRED"
    ],
    "credit_card_security_code": [
        "FIELD_REQUIRED"
    ],
    "payment_method": [
        "FIELD_REQUIRED"
    ]
}

HTTP Request

POST api/payment/payu/{patient}

Get the pin details.

Example request:

curl -X GET \
    -G "http://localhost/api/pin/validate/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/pin/validate/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "messages": "INVALID_PIN"
}

HTTP Request

GET api/pin/validate/{insertedPin}

Get all provinces

Example request:

curl -X GET \
    -G "http://localhost/api/province/all" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/province/all"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": [
        {
            "id": 1,
            "name": "Buenos Aires"
        },
        {
            "id": 2,
            "name": "Capital Federal"
        },
        {
            "id": 3,
            "name": "Catamarca"
        },
        {
            "id": 4,
            "name": "Chaco"
        },
        {
            "id": 5,
            "name": "Chubut"
        },
        {
            "id": 6,
            "name": "Córdoba"
        },
        {
            "id": 7,
            "name": "Corrientes"
        },
        {
            "id": 8,
            "name": "Entre Ríos"
        },
        {
            "id": 9,
            "name": "Formosa"
        },
        {
            "id": 10,
            "name": "Jujuy"
        },
        {
            "id": 11,
            "name": "La Pampa"
        },
        {
            "id": 12,
            "name": "La Rioja"
        },
        {
            "id": 13,
            "name": "Mendoza"
        },
        {
            "id": 14,
            "name": "Misiones"
        },
        {
            "id": 15,
            "name": "Neuquén"
        },
        {
            "id": 16,
            "name": "Río Negro"
        },
        {
            "id": 17,
            "name": "Salta"
        },
        {
            "id": 18,
            "name": "San Juan"
        },
        {
            "id": 19,
            "name": "San Luis"
        },
        {
            "id": 20,
            "name": "Santa Cruz"
        },
        {
            "id": 21,
            "name": "Santa Fé"
        },
        {
            "id": 22,
            "name": "Santiago del Estero"
        },
        {
            "id": 23,
            "name": "Tierra del Fuego"
        },
        {
            "id": 24,
            "name": "Tucumán"
        }
    ]
}

HTTP Request

GET api/province/all

Get all recommendations.

Example request:

curl -X GET \
    -G "http://localhost/api/recommendation/all" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/recommendation/all"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": [
        {
            "id": 1,
            "name": "Consulta a tu médico de cabecera en 24h."
        },
        {
            "id": 2,
            "name": "Consulta a tu médico de cabecera en 48h."
        },
        {
            "id": 3,
            "name": "Consulta a tu médico de cabecera en 72h."
        },
        {
            "id": 4,
            "name": "Consulta por guardia al terminar la videoconsulta."
        },
        {
            "id": 5,
            "name": "Consulta un especialista dentro de la próxima semana."
        },
        {
            "id": 6,
            "name": "Consulta un especialista dentro deL próximo mes."
        },
        {
            "id": 7,
            "name": "Si no hay mejoría dentro de 24h, por favor, vuelve a realizar una consulta médica."
        },
        {
            "id": 8,
            "name": "Si no hay mejoría dentro de 48h, por favor, vuelve a realizar una consulta médica."
        },
        {
            "id": 9,
            "name": "Si no hay mejoría dentro de 72h, por favor, vuelve a realizar una consulta médica."
        },
        {
            "id": 10,
            "name": "Guarda reposo y cumplí con las recomendaciones dadas. Ante cualquier duda o síntoma nuevo, por favor comunicate con un médico."
        },
        {
            "id": 11,
            "name": "Si no mejoras dentro del plazo de tiempo previsto, por favor vuelve a realizar una consulta médica."
        }
    ],
    "message": "The recommendations were showed."
}

HTTP Request

GET api/recommendation/all

Get all specialties.

Example request:

curl -X GET \
    -G "http://localhost/api/specialty/all" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/specialty/all"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": [
        {
            "id": 7,
            "name": "ALERGIA",
            "image": "alergia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 6,
            "name": "ALERGIA E INMUNOPATOLOGIA",
            "image": "alergia-e-inmunopatologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 8,
            "name": "ANATOMIA PATOLOGICA",
            "image": "anatomia-patologica",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 9,
            "name": "ANESTESIA",
            "image": "anestesia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 10,
            "name": "ANGIOLOGIA GENERAL Y HEMODINAMIA",
            "image": "angiologia-general-y-hemodinamia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 11,
            "name": "BACTERIOLOGIA",
            "image": "bacteriologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 13,
            "name": "CARDIOLOGIA",
            "image": "cardiologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 12,
            "name": "CARDIOLOGIA INFANTIL",
            "image": "cardiologia-infantil",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 18,
            "name": "CIRUGIA CARDIOVASCULAR",
            "image": "cirugia-cardiovascular",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 16,
            "name": "CIRUGIA DE CABEZA Y CUELLO",
            "image": "cirugia-de-cabeza-y-cuello",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 17,
            "name": "CIRUGIA GENERAL",
            "image": "cirugia-general",
            "always_available": 1,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 20,
            "name": "CIRUGIA INFANTIL",
            "image": "cirugia-infantil",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 14,
            "name": "CIRUGIA PLASTICA Y REPARADORA",
            "image": "cirugia-plastica-y-reparadora",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 15,
            "name": "CIRUGIA TORACICA",
            "image": "cirugia-toracica",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 19,
            "name": "CIRUGIA VASCULAR PERIFERICA",
            "image": "cirugia-vascular-periferica",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 21,
            "name": "CLINICA MEDICA",
            "image": "clinica-medica",
            "always_available": 1,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 22,
            "name": "DERMATOLOGIA",
            "image": "dermatologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 23,
            "name": "DERMATOSIFILOGRAFIA",
            "image": "dermatosifilografia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 24,
            "name": "DIAGNOSTICO POR IMAGENES",
            "image": "diagnostico-por-imagenes",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 82,
            "name": "doloribus",
            "image": "",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 25,
            "name": "ENDOCRINOLOGIA",
            "image": "endocrinologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 26,
            "name": "ENDOSCOPIA DIGESTIVA",
            "image": "endoscopia-digestiva",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 27,
            "name": "ENFERMEDADES INFECCIOSAS: Infectología",
            "image": "enfermedades-infecciosas-infectologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 28,
            "name": "EPIDEMIOLOGIA",
            "image": "epidemiologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 29,
            "name": "FARMACOLOGIA",
            "image": "farmacologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 30,
            "name": "FISITRIA:Medicina Física y Rehabilitación",
            "image": "fisitriamedicina-fisica-y-rehabilitacion",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 31,
            "name": "GASTROENTEROLOGIA",
            "image": "gastroenterologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 32,
            "name": "GENETICA MEDICA",
            "image": "genetica-medica",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 33,
            "name": "GERIATRIA",
            "image": "geriatria",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 34,
            "name": "GINECOLOGIA",
            "image": "ginecologia",
            "always_available": 1,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 81,
            "name": "Guatrachense",
            "image": "conchatumadre",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 35,
            "name": "HEMATOLOGIA",
            "image": "hematologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 37,
            "name": "HEMOTERAPIA",
            "image": "hemoterapia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 36,
            "name": "HEMOTERAPIA E INMUNOHEMATOLOGIA",
            "image": "hemoterapia-e-inmunohematologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 38,
            "name": "HIGIENE INDUSTRIAL",
            "image": "higiene-industrial",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 39,
            "name": "HIGIENE Y MEDICINA PREVENTIVA",
            "image": "higiene-y-medicina-preventiva",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 5,
            "name": "id",
            "image": "",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 40,
            "name": "INMUNOLOGIA",
            "image": "inmunologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 4,
            "name": "ipsa",
            "image": "",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 41,
            "name": "LEPROLOGIA",
            "image": "leprologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 80,
            "name": "Macachinense",
            "image": "",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 42,
            "name": "MASTOLOGIA",
            "image": "mastologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 48,
            "name": "MEDICINA AERONAUTICA Y ESPACIAL",
            "image": "medicina-aeronautica-y-espacial",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 49,
            "name": "MEDICINA DEL DEPORTE",
            "image": "medicina-del-deporte",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 46,
            "name": "MEDICINA DEL TRABAJO",
            "image": "medicina-del-trabajo",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 47,
            "name": "MEDICINA FAMILIAR",
            "image": "medicina-familiar",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 43,
            "name": "MEDICINA LEGAL",
            "image": "medicina-legal",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 44,
            "name": "MEDICINA NUCLEAR",
            "image": "medicina-nuclear",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 45,
            "name": "MEDICINA SANITARIA",
            "image": "medicina-sanitaria",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 3,
            "name": "necessitatibus",
            "image": "",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 50,
            "name": "NEFROLOGIA",
            "image": "nefrologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 51,
            "name": "NEONATOLOGIA",
            "image": "neonatologia",
            "always_available": 1,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 78,
            "name": "neque",
            "image": "",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 52,
            "name": "NEUMONOLOGIA",
            "image": "neumonologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 53,
            "name": "NEUROCIRUGIA",
            "image": "neurocirugia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 55,
            "name": "NEUROLOGIA",
            "image": "neurologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 54,
            "name": "NEUROLOGIA INFANTIL",
            "image": "neurologia-infantil",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 83,
            "name": "nisi",
            "image": "",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 56,
            "name": "NUTRICION",
            "image": "nutricion",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 57,
            "name": "OBSTETRICIA",
            "image": "obstetricia",
            "always_available": 1,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 58,
            "name": "OFTALMOLOGIA",
            "image": "oftalmologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 59,
            "name": "ONCOLOGIA (Clínica)",
            "image": "oncologia-clinica",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 60,
            "name": "ORTOPEDIA Y TRAUMATOLOGIA",
            "image": "ortopedia-y-traumatologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 61,
            "name": "OTORRINOLARINGOLOGIA",
            "image": "otorrinolaringologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 62,
            "name": "PEDIATRIA (Clínica Pediátrica)",
            "image": "pediatria-clinica-pediatrica",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 63,
            "name": "PROCTOLOGIA",
            "image": "proctologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 64,
            "name": "PSICOLOGIA MEDICA (Clínica)",
            "image": "psicologia-medica-clinica",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 65,
            "name": "PSIQUIATRIA",
            "image": "psiquiatria",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 66,
            "name": "PSIQUIATRIA INFANTIL",
            "image": "psiquiatria-infantil",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 67,
            "name": "QUEMADOS",
            "image": "quemados",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 2,
            "name": "quidem",
            "image": "",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 1,
            "name": "quis",
            "image": "",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 68,
            "name": "RADIOLOGIA",
            "image": "radiologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 69,
            "name": "RADIOTERAPIA (Terapia Radiante)",
            "image": "radioterapia-terapia-radiante",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 70,
            "name": "REUMATOLOGIA",
            "image": "reumatologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 71,
            "name": "SALUD PUBLICA",
            "image": "salud-publica",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 72,
            "name": "TERAPIA INTENSIVA",
            "image": "terapia-intensiva",
            "always_available": 1,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 73,
            "name": "TISIOLOGIA",
            "image": "tisiologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 74,
            "name": "TISIONEUMONOLOGIA",
            "image": "tisioneumonologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 75,
            "name": "TOCOGINECOLOGIA",
            "image": "tocoginecologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 76,
            "name": "TOXICOLOGIA",
            "image": "toxicologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 77,
            "name": "UROLOGIA",
            "image": "urologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        }
    ]
}

HTTP Request

GET api/specialty/all

List all specialties with filters

Example request:

curl -X GET \
    -G "http://localhost/api/specialty/list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/specialty/list"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": [
        {
            "id": 1,
            "name": "quis",
            "image": "",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 2,
            "name": "quidem",
            "image": "",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 3,
            "name": "necessitatibus",
            "image": "",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 4,
            "name": "ipsa",
            "image": "",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 5,
            "name": "id",
            "image": "",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 6,
            "name": "ALERGIA E INMUNOPATOLOGIA",
            "image": "alergia-e-inmunopatologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 7,
            "name": "ALERGIA",
            "image": "alergia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 8,
            "name": "ANATOMIA PATOLOGICA",
            "image": "anatomia-patologica",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 9,
            "name": "ANESTESIA",
            "image": "anestesia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 10,
            "name": "ANGIOLOGIA GENERAL Y HEMODINAMIA",
            "image": "angiologia-general-y-hemodinamia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 11,
            "name": "BACTERIOLOGIA",
            "image": "bacteriologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 12,
            "name": "CARDIOLOGIA INFANTIL",
            "image": "cardiologia-infantil",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 13,
            "name": "CARDIOLOGIA",
            "image": "cardiologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 14,
            "name": "CIRUGIA PLASTICA Y REPARADORA",
            "image": "cirugia-plastica-y-reparadora",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 15,
            "name": "CIRUGIA TORACICA",
            "image": "cirugia-toracica",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 16,
            "name": "CIRUGIA DE CABEZA Y CUELLO",
            "image": "cirugia-de-cabeza-y-cuello",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 17,
            "name": "CIRUGIA GENERAL",
            "image": "cirugia-general",
            "always_available": 1,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 18,
            "name": "CIRUGIA CARDIOVASCULAR",
            "image": "cirugia-cardiovascular",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 19,
            "name": "CIRUGIA VASCULAR PERIFERICA",
            "image": "cirugia-vascular-periferica",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 20,
            "name": "CIRUGIA INFANTIL",
            "image": "cirugia-infantil",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 21,
            "name": "CLINICA MEDICA",
            "image": "clinica-medica",
            "always_available": 1,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 22,
            "name": "DERMATOLOGIA",
            "image": "dermatologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 23,
            "name": "DERMATOSIFILOGRAFIA",
            "image": "dermatosifilografia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 24,
            "name": "DIAGNOSTICO POR IMAGENES",
            "image": "diagnostico-por-imagenes",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 25,
            "name": "ENDOCRINOLOGIA",
            "image": "endocrinologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 26,
            "name": "ENDOSCOPIA DIGESTIVA",
            "image": "endoscopia-digestiva",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 27,
            "name": "ENFERMEDADES INFECCIOSAS: Infectología",
            "image": "enfermedades-infecciosas-infectologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 28,
            "name": "EPIDEMIOLOGIA",
            "image": "epidemiologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 29,
            "name": "FARMACOLOGIA",
            "image": "farmacologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 30,
            "name": "FISITRIA:Medicina Física y Rehabilitación",
            "image": "fisitriamedicina-fisica-y-rehabilitacion",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 31,
            "name": "GASTROENTEROLOGIA",
            "image": "gastroenterologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 32,
            "name": "GENETICA MEDICA",
            "image": "genetica-medica",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 33,
            "name": "GERIATRIA",
            "image": "geriatria",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 34,
            "name": "GINECOLOGIA",
            "image": "ginecologia",
            "always_available": 1,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 35,
            "name": "HEMATOLOGIA",
            "image": "hematologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 36,
            "name": "HEMOTERAPIA E INMUNOHEMATOLOGIA",
            "image": "hemoterapia-e-inmunohematologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 37,
            "name": "HEMOTERAPIA",
            "image": "hemoterapia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 38,
            "name": "HIGIENE INDUSTRIAL",
            "image": "higiene-industrial",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 39,
            "name": "HIGIENE Y MEDICINA PREVENTIVA",
            "image": "higiene-y-medicina-preventiva",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 40,
            "name": "INMUNOLOGIA",
            "image": "inmunologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 41,
            "name": "LEPROLOGIA",
            "image": "leprologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 42,
            "name": "MASTOLOGIA",
            "image": "mastologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 43,
            "name": "MEDICINA LEGAL",
            "image": "medicina-legal",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 44,
            "name": "MEDICINA NUCLEAR",
            "image": "medicina-nuclear",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 45,
            "name": "MEDICINA SANITARIA",
            "image": "medicina-sanitaria",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 46,
            "name": "MEDICINA DEL TRABAJO",
            "image": "medicina-del-trabajo",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 47,
            "name": "MEDICINA FAMILIAR",
            "image": "medicina-familiar",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 48,
            "name": "MEDICINA AERONAUTICA Y ESPACIAL",
            "image": "medicina-aeronautica-y-espacial",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 49,
            "name": "MEDICINA DEL DEPORTE",
            "image": "medicina-del-deporte",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 50,
            "name": "NEFROLOGIA",
            "image": "nefrologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 51,
            "name": "NEONATOLOGIA",
            "image": "neonatologia",
            "always_available": 1,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 52,
            "name": "NEUMONOLOGIA",
            "image": "neumonologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 53,
            "name": "NEUROCIRUGIA",
            "image": "neurocirugia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 54,
            "name": "NEUROLOGIA INFANTIL",
            "image": "neurologia-infantil",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 55,
            "name": "NEUROLOGIA",
            "image": "neurologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 56,
            "name": "NUTRICION",
            "image": "nutricion",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 57,
            "name": "OBSTETRICIA",
            "image": "obstetricia",
            "always_available": 1,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 58,
            "name": "OFTALMOLOGIA",
            "image": "oftalmologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 59,
            "name": "ONCOLOGIA (Clínica)",
            "image": "oncologia-clinica",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 60,
            "name": "ORTOPEDIA Y TRAUMATOLOGIA",
            "image": "ortopedia-y-traumatologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 61,
            "name": "OTORRINOLARINGOLOGIA",
            "image": "otorrinolaringologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 62,
            "name": "PEDIATRIA (Clínica Pediátrica)",
            "image": "pediatria-clinica-pediatrica",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 63,
            "name": "PROCTOLOGIA",
            "image": "proctologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 64,
            "name": "PSICOLOGIA MEDICA (Clínica)",
            "image": "psicologia-medica-clinica",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 65,
            "name": "PSIQUIATRIA",
            "image": "psiquiatria",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 66,
            "name": "PSIQUIATRIA INFANTIL",
            "image": "psiquiatria-infantil",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 67,
            "name": "QUEMADOS",
            "image": "quemados",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 68,
            "name": "RADIOLOGIA",
            "image": "radiologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 69,
            "name": "RADIOTERAPIA (Terapia Radiante)",
            "image": "radioterapia-terapia-radiante",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 70,
            "name": "REUMATOLOGIA",
            "image": "reumatologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 71,
            "name": "SALUD PUBLICA",
            "image": "salud-publica",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 72,
            "name": "TERAPIA INTENSIVA",
            "image": "terapia-intensiva",
            "always_available": 1,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 73,
            "name": "TISIOLOGIA",
            "image": "tisiologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 74,
            "name": "TISIONEUMONOLOGIA",
            "image": "tisioneumonologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 75,
            "name": "TOCOGINECOLOGIA",
            "image": "tocoginecologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 76,
            "name": "TOXICOLOGIA",
            "image": "toxicologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 77,
            "name": "UROLOGIA",
            "image": "urologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 78,
            "name": "neque",
            "image": "",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 80,
            "name": "Macachinense",
            "image": "",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 81,
            "name": "Guatrachense",
            "image": "conchatumadre",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 82,
            "name": "doloribus",
            "image": "",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 83,
            "name": "nisi",
            "image": "",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        }
    ]
}

HTTP Request

GET api/specialty/list

Get all specialties that are assigned to at least one doctor.

Example request:

curl -X GET \
    -G "http://localhost/api/specialty/assigned" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/specialty/assigned"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": [
        {
            "id": 7,
            "name": "ALERGIA",
            "image": "alergia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 18,
            "name": "CIRUGIA CARDIOVASCULAR",
            "image": "cirugia-cardiovascular",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 20,
            "name": "CIRUGIA INFANTIL",
            "image": "cirugia-infantil",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 15,
            "name": "CIRUGIA TORACICA",
            "image": "cirugia-toracica",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 23,
            "name": "DERMATOSIFILOGRAFIA",
            "image": "dermatosifilografia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 27,
            "name": "ENFERMEDADES INFECCIOSAS: Infectología",
            "image": "enfermedades-infecciosas-infectologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 30,
            "name": "FISITRIA:Medicina Física y Rehabilitación",
            "image": "fisitriamedicina-fisica-y-rehabilitacion",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 32,
            "name": "GENETICA MEDICA",
            "image": "genetica-medica",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 33,
            "name": "GERIATRIA",
            "image": "geriatria",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 34,
            "name": "GINECOLOGIA",
            "image": "ginecologia",
            "always_available": 1,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 51,
            "name": "NEONATOLOGIA",
            "image": "neonatologia",
            "always_available": 1,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 55,
            "name": "NEUROLOGIA",
            "image": "neurologia",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 67,
            "name": "QUEMADOS",
            "image": "quemados",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        },
        {
            "id": 2,
            "name": "quidem",
            "image": "",
            "always_available": 0,
            "featured": 0,
            "receive_interconsults_calls": 1,
            "receive_appointments": 1
        }
    ]
}

HTTP Request

GET api/specialty/assigned

Get all symptoms by specialty

Example request:

curl -X GET \
    -G "http://localhost/api/specialty/1/symptoms" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/specialty/1/symptoms"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": []
}

HTTP Request

GET api/specialty/{specialty}/symptoms

Update a Specialty by id

Example request:

curl -X PUT \
    "http://localhost/api/specialty/update/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/specialty/update/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": {
        "id": 1,
        "name": "quis",
        "image": "",
        "always_available": 0,
        "featured": 0,
        "receive_interconsults_calls": 1,
        "receive_appointments": 1
    },
    "message": "update_success"
}

HTTP Request

PUT api/specialty/update/{specialty}

Create a new Specialty

Store in DB a new Specialty

Example request:

curl -X POST \
    "http://localhost/api/specialty/store" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/specialty/store"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "name": [
        "FIELD_REQUIRED"
    ]
}

HTTP Request

POST api/specialty/store

Delete a Specialty by id

Example request:

curl -X DELETE \
    "http://localhost/api/specialty/delete/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/specialty/delete/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": {
        "id": 1,
        "name": "quis",
        "image": "",
        "always_available": 0,
        "featured": 0,
        "receive_interconsults_calls": 1,
        "receive_appointments": 1
    },
    "message": "delete_success"
}

HTTP Request

DELETE api/specialty/delete/{specialty}

Get all symptoms.

Example request:

curl -X GET \
    -G "http://localhost/api/symptom/all" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/symptom/all"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": [
        {
            "id": 1,
            "name": "Otros",
            "specialty_id": null,
            "specialty_name": null
        },
        {
            "id": 2,
            "name": "Dolor de garganta",
            "specialty_id": null,
            "specialty_name": null
        },
        {
            "id": 3,
            "name": "Fiebre",
            "specialty_id": null,
            "specialty_name": null
        },
        {
            "id": 4,
            "name": "Dolores musculares",
            "specialty_id": null,
            "specialty_name": null
        },
        {
            "id": 5,
            "name": "Dolor abdominal",
            "specialty_id": null,
            "specialty_name": null
        },
        {
            "id": 6,
            "name": "Dolor de cabeza",
            "specialty_id": null,
            "specialty_name": null
        },
        {
            "id": 7,
            "name": "Disfonía",
            "specialty_id": null,
            "specialty_name": null
        },
        {
            "id": 8,
            "name": "Alergia o urticaria",
            "specialty_id": null,
            "specialty_name": null
        },
        {
            "id": 9,
            "name": "Dolores articulares",
            "specialty_id": null,
            "specialty_name": null
        },
        {
            "id": 10,
            "name": "Diarrea",
            "specialty_id": null,
            "specialty_name": null
        },
        {
            "id": 11,
            "name": "Vacunas",
            "specialty_id": null,
            "specialty_name": null
        },
        {
            "id": 12,
            "name": "Dolor de oídos",
            "specialty_id": null,
            "specialty_name": null
        },
        {
            "id": 13,
            "name": "Tos",
            "specialty_id": null,
            "specialty_name": null
        },
        {
            "id": 14,
            "name": "Dolor de espalda",
            "specialty_id": null,
            "specialty_name": null
        },
        {
            "id": 15,
            "name": "Náuseas y vómitos",
            "specialty_id": null,
            "specialty_name": null
        },
        {
            "id": 16,
            "name": "Ojos rojos",
            "specialty_id": null,
            "specialty_name": null
        },
        {
            "id": 17,
            "name": "Congestión nasal",
            "specialty_id": null,
            "specialty_name": null
        },
        {
            "id": 18,
            "name": "Ardor al orinar",
            "specialty_id": null,
            "specialty_name": null
        },
        {
            "id": 19,
            "name": "Lesiones y manchas en la piel",
            "specialty_id": null,
            "specialty_name": null
        }
    ]
}

HTTP Request

GET api/symptom/all

Display a listing of the resource.

Example request:

curl -X GET \
    -G "http://localhost/api/term/all" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/term/all"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": []
}

HTTP Request

GET api/term/all

Store a newly created resource in storage.

Example request:

curl -X PUT \
    "http://localhost/api/term/1/sign/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/term/1/sign/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": "success",
    "data": {
        "user": {
            "id": 1,
            "first_name": "Mrs. Anne Zulauf",
            "last_name": "Ruecker",
            "identification_id": 2,
            "identification": "12454488",
            "gender": "Male",
            "position": "Veterinarian",
            "birth_date": "1986-12-25",
            "email": "fcorkery@example.com",
            "cellphone_country": "59",
            "cellphone_area": "503",
            "cellphone_number": "+1.378.696.4936",
            "phone_extention": null,
            "secondary_password": null,
            "avatar": "https:\/\/lorempixel.com\/400\/400\/?87286",
            "address": "73146 Altenwerth Ford\nNew Shannystad, NJ 78081",
            "building_number": 2177,
            "floor": null,
            "door_number": null,
            "postal_code": 2895,
            "province": "Michigan",
            "city": "East Lorna",
            "deleted_at": null,
            "created_at": "2020-02-14 16:58:10",
            "updated_at": "2020-02-14 16:58:10",
            "latitude": null,
            "longitude": null,
            "mandatory_password_change": 0,
            "restricted_access": 0
        },
        "terms_version": "1"
    },
    "message": "The user signed the T&C successfuly"
}

HTTP Request

PUT api/term/{term}/sign/{user}

List all users with paginate.

Example request:

curl -X GET \
    -G "http://localhost/api/user/all" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/user/all"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/user/all

Get the user details.

Example request:

curl -X GET \
    -G "http://localhost/api/user/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/user/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (404):

{
    "status": "error",
    "message": "Admin not found"
}

HTTP Request

GET api/user/{admin}

Validate JWT token.

Example request:

curl -X GET \
    -G "http://localhost/api/user/token/validate" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/user/token/validate"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

GET api/user/token/validate

Recover password email.

Example request:

curl -X GET \
    -G "http://localhost/api/user/recover-password/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/user/recover-password/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (404):

{
    "error": "Not Found"
}

HTTP Request

GET api/user/recover-password/{identification}

Create a new user.

Example request:

curl -X POST \
    "http://localhost/api/user/store" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/user/store"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

POST api/user/store

Update a user.

Example request:

curl -X POST \
    "http://localhost/api/user/update/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/user/update/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "status": "error",
    "result": false,
    "message": "token_invalid"
}

HTTP Request

POST api/user/update/{id}

Delete a user.

Example request:

curl -X DELETE \
    "http://localhost/api/user/delete/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/user/delete/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (404):

{
    "status": "error",
    "message": "Admin not found"
}

HTTP Request

DELETE api/user/delete/{admin}

Search.

Example request:

curl -X GET \
    -G "http://localhost/api/search" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/search"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (422):

{
    "search": [
        "FIELD_REQUIRED"
    ]
}

HTTP Request

GET api/search

Used to test email company

Example request:

curl -X GET \
    -G "http://localhost/api/error/test" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}"
const url = new URL(
    "http://localhost/api/error/test"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVkaWNvc29ubGluZS50ZXN0L2FwaS9hdXRoL2xvZ2luIiwiaWF0IjoxNTc4MDU0OTE1LCJleHAiOjE1NzgwODM3MTUsIm5iZiI6MTU3ODA1NDkxNSwianRpIjoiTlU2dHBXVVp0MkZyZ3JtQyIsInN1YiI6NywicHJ2IjoiMGU2NWZlY2FjNDUyOTNkOGZkZmM1YjMwZjEwOGQ0MDVmMGE1Y2RiNiJ9.YpNL1IIkmFSvp52bHqFPKmkOT8vgT1N5ew1scAO48aM}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

GET api/error/test