Get Facilities List
Retrieve the facility data using the clientID provided in the parameters and ensuring a valid token is present in the headers.
Demo Curl
curl --location 'https://demo.hng.one/developerapi/mmu/facilities?clientId=<<clientID>>' \
--header 'Authorization: Bearer <<Token>>'
Prod Curl
curl --location 'https://aths.hng.one/developerapi/mmu/facilities?clientId=<<clientID>>' \
--header 'Authorization: Bearer <<Token>>'
Sample Responce
You will receive a response similar to below
{
"code": "Ok",
"message": "Facility List obtained successfully",
"data": [
{
"id": 1,
"attributes": {
"facilityName": "test",
"facilityId": "test1234",
"assignmentType": null,
"tollFreeNumber": null,
"prismUhidPrefix": null,
"regionId": null,
"createdAt": "2023-12-29T10:32:01.836Z",
"updatedAt": "2024-02-29T10:22:12.994Z",
"publishedAt": "2023-12-29T10:32:03.206Z"
}
}
]
}