Get Classrooms
Description
取得教室列表。
Resource
GET /v1/basic/classrooms
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Request Body Parameters
| Name | Type | Description |
|---|---|---|
| start_time | string | 開始時間 EXAMPLE "2020-01-01 12:00:00" |
| end_time | string | 結束時間 EXAMPLE "2020-01-01 12:00:00" |
Request
GET /v1/basic/classrooms?start_time=2021-09-01 09:00:00&end_time=2021-09-01 14:00:00
Response Body Parameters
| Name | Type | Description |
|---|---|---|
| classrooms | Classroom | 教室列表 |
Response Body Parameters - Classroom
| Name | Type | Description |
|---|---|---|
| id | string | 教室編號 |
| name | string | 教室名稱 |
| min_person_count | integer | 最小容納人數 |
| max_person_count | integer | 最大容納人數 |
| all_times | list | 所有時間列表 |
| available_times | list | 可用時間列表 |
Response
{
"classrooms": [
{
"id": "1",
"name": "教室A",
"min_person_count": 10,
"max_person_count": 20,
"all_times": [
"09:00",
"10:00",
"11:00",
"12:00",
"13:00"
],
"available_times": [
"10:00",
"13:00"
]
},
{
"id": "2",
"name": "教室B",
"min_person_count": 20,
"max_person_count": 30,
"all_times": [
"09:00",
"10:30",
"12:00"
],
"available_times": [
"10:30"
]
}
]
}