Hello Bryntum team,
Please support me with step by step guide how to integrate bellow response api with bryntum calendar;
Here my response from the api:
{
"success": true,
"resources": {
"rows": [
{
"id": "FACIL_0000000000048",
"name": "Meeting rooms",
"eventColor": "green"
}
]
},
"events": {
"rows": [
{
"id": 1,
"startDate": "2023-02-27T14:00:00",
"endDate": "2023-02-27T16:00:00",
"name": "Ikaze room",
"allDay": false,
"resourceId": "FACIL_0000000000048",
"eventColor": "grantt-green",
"reason": "Test one"
},
{
"id": 2,
"startDate": "2023-02-27T09:58:44",
"endDate": "2023-02-27T09:58:44",
"name": "Ikaze room",
"allDay": false,
"resourceId": "FACIL_0000000000048",
"eventColor": "grantt-green",
"reason": "for training"
},
{
"id": 3,
"startDate": "2023-02-24T14:23:01",
"endDate": "2023-02-24T15:00:00",
"name": "Ikaze room",
"allDay": false,
"resourceId": "FACIL_0000000000048",
"eventColor": "grantt-green",
"reason": "Reaseon"
}
]
}
}
Bellow my request to get the reponse i provided
axios.get(
`${process.env.NEXT_PUBLIC_RESERVATION_API_URL}/reservation/v1/calendarEvents/${'FACIL_0000000000048'}/${3}`,
{
headers : {
Authorization: `Bearer ${
typeof window !== 'undefined' && getCookie('gsas_token')
}`,
'X-REALM': realm,
'Access-Control-Allow-Origin': '*',
'Content-Type': 'application/json',
},
}
),
I have been trying for a week without a success.
Thanks