- 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
查找指定id光照信息
GET
/lights/{light_id}/details
请求参数
Path 参数
light_id
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//details' \
--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": {
"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
},
"message": ""
}
🟢200成功
修改于 2024-11-08 06:58:14