Skip to main content

Get a Resource

Returns a Resource based on the id and the type provided by the request.

GET /v1/:type/:id

Path Parameters

  • type - (Required, string) specifies the type resource. Possible values are described in Resource Types.

  • id - specifies the id of the resource. A resource can be fetched either by id or by any of its identifiers.

Response

Returns 200 - OK with a Resource in the response body.

Example

200 OK on GET /v1/clinic/cd429379-821e-42e1-8d4c-815349534670
{
"id": "cd429379-821e-42e1-8d4c-815349534670",
"createdAt": "2021-10-12T18:24:09.651074Z",
"updatedAt": "2021-10-12T18:24:09.651074Z",
"name": "Foot clinic",
"phone": [
{
"id": "phone-d13f82fa-2fd5-4422-8e29-dd4fec650440",
"value": "5140902999",
"use": "reception",
"system": "phone",
"extension": null
}
],
"email": [
{
"id": "email-35bfdca3-3e63-49e3-97b4-18979da37a0c",
"value": "info@footclinic.com",
"use": "info",
"system": "email"
}
],
"openingHours": [
{
"day": 1,
"start": "08:00:00",
"end": "17:00:00"
},
{
"day": 2,
"start": "08:00:00",
"end": "17:00:00"
},
{
"day": 3,
"start": "08:00:00",
"end": "17:00:00"
},
{
"day": 4,
"start": "08:00:00",
"end": "17:00:00"
},
{
"day": 5,
"start": "08:00:00",
"end": "17:00:00"
}
]
}