- 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
更新天气
开发中
PUT
/weathers/{weather_id}
请求参数
Path 参数
weather_id
integer
必需
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
Body 参数application/json
name
string
必需
name_en
string
可选
desc
string
可选
desc_en
string
可选
cloudiness
number
雾
precipitation
number
降水
precipitation_deposits
number
降水量
wind_intensity
number
风力强度
fog_density
number
雾密度
fog_distance
number
雾气距离
wetness
number
湿润度
fog_falloff
number
雾气分散
fog_visualrange
number
雾气范围
sky_visibility
boolean
天空可见度
cloudstate
string
云层状态
示例
{"name":"weather_20240816_ZIJlI","name_en":"weather_20240816_ZIJlI","desc":"","desc_en":"","cloudiness":10,"precipitation":0,"precipitation_deposits":0,"wind_intensity":24.44,"fog_density":10,"fog_distance":75,"wetness":0,"fog_falloff":1,"fog_visualrange":10000,"sky_visibility":true,"cloudstate":"free"}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT '/weathers/' \
--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' \
--header 'Content-Type: application/json' \
--data-raw '{"name":"weather_20240816_ZIJlI","name_en":"weather_20240816_ZIJlI","desc":"","desc_en":"","cloudiness":10,"precipitation":0,"precipitation_deposits":0,"wind_intensity":24.44,"fog_density":10,"fog_distance":75,"wetness":0,"fog_falloff":1,"fog_visualrange":10000,"sky_visibility":true,"cloudstate":"free"}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{
"code": 200,
"result": {
"desc": "",
"created_at": "2024-08-16 14:20:20",
"name": "weather_20240816",
"precipitation": 0,
"fog_density": 10,
"id": 11,
"user_id": 1,
"company_id": 1,
"wind_intensity": 24.44,
"name_en": "weather_20240816_ZIJlI",
"modified_at": "2024-08-21T14:09:55.931577+08:00",
"cloudiness": 10,
"system_data": false,
"fog_falloff": 1,
"precipitation_deposits": 0,
"sky_visibility": true,
"fog_distance": 75,
"cloudstate": "free",
"fog_visualrange": 10000,
"invalid": 0,
"wetness": 0,
"desc_en": ""
},
"message": ""
}
修改于 2024-11-08 06:58:42