Skip to content

DatasetTarget

Test Dataset Associations - Management interface for establishing and maintaining links between test datasets and test resources (APIs/scenarios)


Query the list of target datasets

GET
/api/v1/target/{targetId}/{targetType}/dataset

授权

UserHttpBearer

Use existing opaque tokens for authentication

类型HTTP (bearer)

参数

路径参数

targetId*

Target id

类型integer
必填
format"int64"
targetType*

Target type, allowable values : API, SCENARIO

类型string
必填

响应

OK

*/*
JSON
{
"code": "string",
"msg": "string",
"data": {
},
"datetime": "string",
"ext": {
"additionalProperties": {
}
}
}

试验场

授权
变量

示例

cURL
JavaScript
PHP
Python

Add target dataset

POST
/api/v1/target/{targetId}/{targetType}/dataset

授权

UserHttpBearer

Use existing opaque tokens for authentication

类型HTTP (bearer)

参数

路径参数

targetId*

Target id

类型integer
必填
format"int64"
targetType*

Target type, allowable values: API, SCENARIO

类型string
必填

请求体

application/json
JSON
[
0
]

响应

OK

*/*
JSON
{
"code": "string",
"msg": "string",
"data": {
},
"datetime": "string",
"ext": {
"additionalProperties": {
}
}
}

试验场

授权
变量
主体

示例

cURL
JavaScript
PHP
Python

Delete target datasets

DELETE
/api/v1/target/{targetId}/{targetType}/dataset

授权

UserHttpBearer

Use existing opaque tokens for authentication

类型HTTP (bearer)

参数

路径参数

targetId*

Target id

类型integer
必填
format"int64"
targetType*

Target type, allowable values : API, SCENARIO

类型string
必填

请求体

application/json
JSON
[
0
]

响应

OK

*/*
JSON
{
"code": "string",
"msg": "string",
"data": {
},
"datetime": "string",
"ext": {
"additionalProperties": {
}
}
}

试验场

授权
变量
主体

示例

cURL
JavaScript
PHP
Python

Preview the values of target datasets

GET
/api/v1/target/{targetId}/{targetType}/dataset/value/preview

授权

UserHttpBearer

Use existing opaque tokens for authentication

类型HTTP (bearer)

参数

路径参数

targetId*

Target id

类型integer
必填
format"int64"
targetType*

Target type, allowable values : API, SCENARIO

类型string
必填

响应

OK

*/*
JSON
{
"code": "string",
"msg": "string",
"data": {
},
"datetime": "string",
"ext": {
"additionalProperties": {
}
}
}

试验场

授权
变量

示例

cURL
JavaScript
PHP
Python

Query the list of dataset targets

GET
/api/v1/dataset/{datasetId}/target

授权

UserHttpBearer

Use existing opaque tokens for authentication

类型HTTP (bearer)

参数

路径参数

datasetId*

Dataset id

类型integer
必填
format"int64"

响应

OK

*/*
JSON
{
"code": "string",
"msg": "string",
"data": {
},
"datetime": "string",
"ext": {
"additionalProperties": {
}
}
}

试验场

授权
变量

示例

cURL
JavaScript
PHP
Python

Released under the GPL-3.0 License.