Skip to content

VariableTarget

Test Variable Bindings - Management interface for mapping defined variables to specific test resources (APIs/scenarios)


Query the list of target variables

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

授权

UserHttpBearer

Use existing opaque tokens for authentication

类型HTTP (bearer)

参数

路径参数

targetId*

Target id

类型integer
必填
format"int64"
targetType*

Target type, allowable values : API, API_CASE, SCENARIO

类型string
必填

响应

OK

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

试验场

授权
变量

示例

cURL
JavaScript
PHP
Python

Add target variable

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

授权

UserHttpBearer

Use existing opaque tokens for authentication

类型HTTP (bearer)

参数

路径参数

targetId*

Target id

类型integer
必填
format"int64"
targetType*

Target type, allowable values : API, API_CASE, SCENARIO

类型string
必填

请求体

application/json
JSON
[
0
]

响应

OK

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

试验场

授权
变量
主体

示例

cURL
JavaScript
PHP
Python

Delete target variables

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

授权

UserHttpBearer

Use existing opaque tokens for authentication

类型HTTP (bearer)

参数

路径参数

targetId*

Target id

类型integer
必填
format"int64"
targetType*

Target type, allowable values : API, API_CASE, SCENARIO

类型string
必填

请求体

application/json
JSON
[
0
]

响应

OK

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

试验场

授权
变量
主体

示例

cURL
JavaScript
PHP
Python

Query the list of variable targets

GET
/api/v1/variable/{variableId}/target

授权

UserHttpBearer

Use existing opaque tokens for authentication

类型HTTP (bearer)

参数

路径参数

variableId*

Variable id

类型integer
必填
format"int64"

响应

OK

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

试验场

授权
变量

示例

cURL
JavaScript
PHP
Python

Preview the values of target variables

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

授权

UserHttpBearer

Use existing opaque tokens for authentication

类型HTTP (bearer)

参数

路径参数

targetId*

Target id

类型integer
必填
format"int64"
targetType*

Target type, allowable values : API, API_CASE, SCENARIO

类型string
必填

响应

OK

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

试验场

授权
变量

示例

cURL
JavaScript
PHP
Python

Released under the GPL-3.0 License.