- OASIS SIM(废弃)
- sensors
- dynamics
- cars
- car_models
- jobs
- tasks
- scenarios
- scenario_groups
- scenario_elements
- maps
- test_cases
- scores
- traffic_flows
- controllers
- weathers
- lights
- logs(废弃)
- emails
- users
- evaluates
- file_operator
- trashes(已废弃)
- configs
- licenses
- 查询tokenGET
查找所有光照信息
GET
/lights/
请求参数
Query 参数
pagenum
integer
可选
示例值:
1
pagesize
integer
可选
示例值:
15
content
string
必需
locale
string
必需
Header 参数
Authorization
string
必需
示例值:
bearer {{token}}
Content-Type
string
可选
示例值:
application/json
User-Agent
string
必需
示例值:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/lights/?pagenum=1&pagesize=15&content=&locale=' \
--header 'Authorization: bearer {{token}}' \
--header 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36'
返回响应
🟢200成功
application/json
Body
code
integer
必需
result
object
必需
pageinfo
object
必需
datas
array [object {22}]
必需
message
string
必需
示例
{
"code": 200,
"result": {
"pageinfo": {
"total_num": 6,
"total_page_num": 1
},
"datas": [
{
"modified_at": "2023-03-24 16:34:50",
"name_en": "Midnight",
"desc_en": "Initialize the lighting model with default settings for users to experience the system for the first time.",
"system_data": true,
"sun_azimuth_angle": 360,
"desc": "初始化光照模型,所有参数均使用默认配置,可用于用户初次使用系统体验使用。\n",
"name": "午夜",
"user_id": 1,
"company_id": 1,
"invalid": 0,
"id": 6,
"created_at": "2022-11-09 08:56:45",
"sun_altitude_angle": -90
},
{
"modified_at": "2023-03-24 16:34:50",
"name_en": "Dusk",
"desc_en": "Initialize the lighting model with default settings for users to experience the system for the first time.",
"system_data": true,
"sun_azimuth_angle": 270,
"desc": "初始化光照模型,所有参数均使用默认配置,可用于用户初次使用系统体验使用。\n",
"name": "黄昏",
"user_id": 1,
"company_id": 1,
"invalid": 0,
"id": 5,
"created_at": "2022-11-09 08:56:45",
"sun_altitude_angle": 15
},
{
"modified_at": "2023-03-24 16:34:50",
"name_en": "Afternoon",
"desc_en": "Initialize the lighting model with default settings for users to experience the system for the first time.",
"system_data": true,
"sun_azimuth_angle": 225,
"desc": "初始化光照模型,所有参数均使用默认配置,可用于用户初次使用系统体验使用。\n",
"name": "午后",
"user_id": 1,
"company_id": 1,
"invalid": 0,
"id": 4,
"created_at": "2022-11-09 08:56:45",
"sun_altitude_angle": 25
},
{
"modified_at": "2023-03-24 16:34:50",
"name_en": "Noon",
"desc_en": "Initialize the lighting model with default settings for users to experience the system for the first time.",
"system_data": true,
"sun_azimuth_angle": 180,
"desc": "初始化光照模型,所有参数均使用默认配置,可用于用户初次使用系统体验使用。\n",
"name": "正午",
"user_id": 1,
"company_id": 1,
"invalid": 0,
"id": 3,
"created_at": "2022-11-09 08:56:45",
"sun_altitude_angle": 90
},
{
"modified_at": "2023-03-24 16:34:50",
"name_en": "Morning",
"desc_en": "Initialize the lighting model with default settings for users to experience the system for the first time.",
"system_data": true,
"sun_azimuth_angle": 135,
"desc": "初始化光照模型,所有参数均使用默认配置,可用于用户初次使用系统体验使用。\n",
"name": "上午",
"user_id": 1,
"company_id": 1,
"invalid": 0,
"id": 2,
"created_at": "2022-11-09 08:56:45",
"sun_altitude_angle": 75
},
{
"modified_at": "2023-03-24 16:34:50",
"name_en": "Early Morning",
"desc_en": "Initialize the lighting model with default settings for users to experience the system for the first time.",
"system_data": true,
"sun_azimuth_angle": 160,
"desc": "初始化光照模型,所有参数均使用默认配置,可用于用户初次使用系统体验使用。\n",
"name": "清晨",
"user_id": 1,
"company_id": 1,
"invalid": 0,
"id": 1,
"created_at": "2022-11-09 08:56:45",
"sun_altitude_angle": 20
}
]
},
"message": ""
}
🟢200成功
修改于 2024-11-08 06:58:07