Skip to main content

Fetch Resources List

Retrieve the list of resources associated with the designated facilities by using the facility provided in the parameters and ensuring the presence of a valid token in the headers.

Demo Curl

curl --location 'https://demo.hng.one/developerapi/mmu/resources?facilityId=<<Facility Id>>' \
--header 'Authorization: Bearer <<TOKEN>>'

Prod Curl

curl --location 'https://aths.hng.one/developerapi/mmu/resources?facilityId=<<Facility Id>>' \
--header 'Authorization: Bearer <<TOKEN>>'

Sample Responce

You will receive a response similar to below

{
"code": "Ok",
"message": "Resource List obtained successfully",
"data": [
{
"id": 111,
"attributes": {
"email": "test@mail.com",
"password": "",
"resourceId": "auth0|1234567890",
"username": "XXXXX",
"createdAt": "2023-11-07T10:25:38.286Z",
"updatedAt": "2023-11-29T09:14:16.471Z",
"publishedAt": "2023-11-07T10:25:45.195Z",
"isUserBlocked": false,
"pwa_password_sha256_hex": null
}
}
]
}