User
Get current and next reservation
API
- Introduction
- Authentication
- Department
- Department Image
- Desk
- Equipment
- Password
- Report
- Reservation
- Room
- Search
- Self
- Session
- Stats
- User
- User Avatar
User
Get current and next reservation
Get the current and next reservation for a user
GET
/
api
/
users
/
{id}
/
current-reservation
curl --request GET \
--url http://localhost/api/users/{id}/current-reservation \
--header 'Authorization: Bearer <token>'
{
"current": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deskId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"roomId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"departmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"type": "shared"
},
"next": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deskId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"roomId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"departmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"type": "shared"
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Response
200
*/*
OK
Was this page helpful?
curl --request GET \
--url http://localhost/api/users/{id}/current-reservation \
--header 'Authorization: Bearer <token>'
{
"current": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deskId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"roomId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"departmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"type": "shared"
},
"next": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deskId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"roomId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"departmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"type": "shared"
}
}