- OASIS SIM(废弃)
- sensors
- dynamics
- cars
- car_models
- jobs
- tasks
- scenarios
- scenario_groups
- scenario_elements
- maps
- test_cases
- scores
- 获取指定ID得分GET
- 获取所有得分GET
- 更新指定ID得分信息PUT
- 获取指定ID得分的所有计分单元GET
- 获取指定ID得分的指定ID的计分单元GET
- 新建指定ID得分的计分单元POST
- 更新指定ID得分的指定ID的计分单元PUT
- 批量更新指定ID得分的指定ID的计分单元的权重PUT
- 删除指定ID得分的指定ID的计分单元DELETE
- 获取指定ID得分的指定ID的计分单元的所有数据GET
- 获取指定ID得分的指定ID的计分单元的指定ID的数据GET
- 新建指定ID得分的指定ID的计分单元的数据POST
- 更新指定ID得分的指定ID的计分单元的指定ID的数据PUT
- 删除指定ID得分的指定ID的计分单元的指定ID的数据DELETE
- traffic_flows
- controllers
- weathers
- lights
- logs(废弃)
- emails
- users
- evaluates
- file_operator
- trashes(已废弃)
- configs
- licenses
- 查询tokenGET
新建指定ID得分的指定ID的计分单元的数据
开发中
POST
/scores/{score_id}/items/{score_item_id}/subitems
只有在输入数据类型的时候,才传参custom_size,引入数据类型的时候不要传此字段
只有是引入数据类型的时候,才传参test_case_id
请求参数
Path 参数
score_id
integer
必需
示例值:
1
score_item_id
integer
必需
示例值:
1
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
必需
render_mode
string
必需
controller
integer
必需
controller_version
integer
必需
car_id
integer
必需
view_record
boolean
必需
test_model
string
必需
viz_record_flag
boolean
必需
sensor_data_record_enable
boolean
必需
show_game_window
boolean
必需
scenario_ids
array[integer]
必需
data_record
boolean
必需
record_mode
string
必需
frequency
integer
必需
bev
boolean
必需
示例
[
{
"name": "数据001",
"name_en": "data11",
"weight": 1.0,
"type": 2,
"custom_size": 98.0,
"test_case_id": 10
},
{
"name": "数据002",
"name_en": "data12",
"weight": 1.0,
"type": 2,
"custom_size": 97.0,
"test_case_id": 11
}
]
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/scores/1/items/1/subitems' \
--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": "数据001",
"name_en": "data11",
"weight": 1.0,
"type": 2,
"custom_size": 98.0,
"test_case_id": 10
},
{
"name": "数据002",
"name_en": "data12",
"weight": 1.0,
"type": 2,
"custom_size": 97.0,
"test_case_id": 11
}
]'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
en
string
必需
result
null
必需
示例
{
"code": 200,
"result": [
{
"name_en": "data11",
"score_item_id": 1,
"modified_at": "2024-08-23 10:36:34",
"type": 2,
"test_case_id": null,
"id": 1,
"scores": 98,
"invalid": 0,
"score_id": 1,
"name": "数据001",
"created_at": "2024-08-23 10:36:34",
"weight": 1,
"custom_size": 98
},
{
"name_en": "data12",
"score_item_id": 1,
"modified_at": "2024-08-23 10:36:34",
"type": 2,
"test_case_id": null,
"id": 2,
"scores": 97,
"invalid": 0,
"score_id": 1,
"name": "数据002",
"created_at": "2024-08-23 10:36:34",
"weight": 1,
"custom_size": 97
}
],
"message": ""
}
修改于 2024-08-23 02:46:07