body格式_binary&OAS
POST
/regression/request/bodytype/binary/OAS
runtimehttp
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://dev.your-api-server.com/regression/request/bodytype/binary/OAS?query_fixed=q_fixed&query_api_on=q_value_on&query_api_off=q_value_off&query_api_var=q_{{api_var}}&query_api_dymic={% mock '\''pick'\'' , ['\''querypick'\''] %}&query_string=sss&query_int=22&query_num=33.33&query_array=apple&query_array=peach&q_gp_str=1234&q_gp_num=1234&q_gp_int=1234&q_gp_array1=a&q_gp_array1=b&q_on_gp_request_off=&glo_qparam_use_glo={{id_glo}}&glo_qparam_use_env={{id_env}}&glo_qparam_use_prior={{priority_env}}' \
--header 'header_api_on: h_value_on' \
--header 'header_api_off: h_value_off' \
--header 'header_api_var: h_{{api_var}}' \
--header 'header_api_dymic: {% mock '\''pick'\'' , ['\''headerpick'\''] %}' \
--header 'header_str: hello' \
--header 'header_int: 1234' \
--header 'header_number: 33.33' \
--header 'header_array: aaaa' \
--header 'header_array: bbbb' \
--header 'h_gp_str: 1234' \
--header 'h_gp_num: 1234' \
--header 'h_gp_int: 1234' \
--header 'h_on_gp_request_off;' \
--header 'glo_hparam_use_glo: {{id_glo}}' \
--header 'glo_hparam_use_env: {{id_env}}' \
--header 'glo_hparam_use_prior: {{priority_env}}' \
--header 'header_long: l=eBO-G2Fng9CH5uxF2Ofahurza77OSIOYYuPzaNbMiOCP_Xfp5gxlW6pndVL9C31Vh6DWR3-82bJHBeYBcIfEiOp2AJ-YF8Mmnl=eBO-G2Fng9CH5uxF2Ofahurza77OSIOYYuPzaNbMiOCP_Xfp5gxlW6pndVL9C31Vh6DWR3-82bJHBeYBcIfEiOp2AJ-YF8Mmn=end' \
--header 'Cookie: cookei_api_on=c_value_on;cookei_api_off=c_value_off;cookei_api_var=c_{{api_var}};cookei_api_dymic={% mock '\''pick'\'' , ['\''cookiepick'\''] %};cookie_str=test;cookie_int=1234;cookie_num=11.23;cookie_array=peach;cookie_array=apple;c_on_gp_request_off=;c_gp_str=1234;c_gp_num=1234;c_gp_int=1234;c1=cookieInGlobalCookie;c_on_gp_request_off=c_on_gp_request_off_value;glo_cparam_use_glo={{id_glo}};glo_cparam_use_env={{id_env}};glo_cparam_use_prior={{priority_env}};c1=cookieInGlobalHeader' \
--header 'Content-Type: application/octet-stream' \
--data-binary '@text'
Response Response Example
200 - Example 1
{
"status": 0,
"msg": "string",
"data": {
"pet_list": [
[
{
"name": "string",
"tag_list": [
{
"tag_id": 0,
"tag_name": "string",
"group": [
"string"
]
}
]
}
]
],
"status": "string"
}
}
Request
Query Params
query_fixed
string
required
Example:
q_fixed
query_api_on
integer
required
Example:
q_value_on
query_api_off
string
required
Example:
q_value_off
query_api_var
string
required
Example:
q_{{api_var}}
query_api_dymic
string
required
Example:
{% mock 'pick' , ['querypick'] %}
query_string
string
required
Example:
sss
query_int
integer
required
Example:
22
query_num
number
required
Example:
33.33
query_array
array[string]
required
Example:
["apple","peach"]
query_unquired
string
optional
Example:
unquired
q_gp_str
string
optional
Default:
1234
q_gp_num
number
optional
Default:
1234
q_gp_int
integer
optional
Default:
1234
q_gp_array1
array[string]
optional
Default:
ab
q_on_gp_request_off
string
required
Default:
q_on_gp_request_off_value
glo_qparam_use_glo
string
optional
Default:
{{id_glo}}
glo_qparam_use_env
string
optional
Default:
{{id_env}}
glo_qparam_use_prior
string
optional
Default:
{{priority_env}}
Header Params
header_api_on
integer
required
Example:
h_value_on
header_api_off
string
required
Example:
h_value_off
header_api_var
string
required
Example:
h_{{api_var}}
header_api_dymic
string
required
Example:
{% mock 'pick' , ['headerpick'] %}
header_str
string
required
Example:
hello
header_int
integer
required
Example:
1234
header_number
number
required
Example:
33.33
header_array
array[string]
required
Example:
["aaaa","bbbb"]
header_unrequired
string
optional
Example:
unrequired
h_gp_str
string
optional
Default:
1234
h_gp_num
number
optional
Default:
1234
h_gp_int
integer
optional
Default:
1234
Cookie
string
optional
Default:
c1=cookieInGlobalHeader
h_on_gp_request_off
string
required
Default:
h_on_gp_case_off_value
glo_hparam_use_glo
string
optional
Default:
{{id_glo}}
glo_hparam_use_env
string
optional
Default:
{{id_env}}
glo_hparam_use_prior
string
optional
Default:
{{priority_env}}
header_long
string
optional
Default:
l=eBO-G2Fng9CH5uxF2Ofahurza77OSIOYYuPzaNbMiOCP_Xfp5gxlW6pndVL9C31Vh6DWR3-82bJHBeYBcIfEiOp2AJ-YF8Mmnl=eBO-G2Fng9CH5uxF2Ofahurza77OSIOYYuPzaNbMiOCP_Xfp5gxlW6pndVL9C31Vh6DWR3-82bJHBeYBcIfEiOp2AJ-YF8Mmn=end
Cookie Params
cookei_api_on
integer
required
Example:
c_value_on
cookei_api_off
string
required
Example:
c_value_off
cookei_api_var
string
required
Example:
c_{{api_var}}
cookei_api_dymic
string
required
Example:
{% mock 'pick' , ['cookiepick'] %}
cookie_str
string
required
Example:
test
cookie_int
integer
required
Example:
1234
cookie_num
number
required
Example:
11.23
cookie_array
array[string]
required
Example:
["peach","apple"]
cookie_unrequired
string
optional
Example:
unrequired
c_gp_str
string
optional
Default:
1234
c_gp_num
number
optional
Default:
1234
c_gp_int
integer
optional
Default:
1234
c1
string
optional
Default:
cookieInGlobalCookie
c_on_gp_request_off
string
required
Default:
c_on_gp_request_off_value
glo_cparam_use_glo
string
optional
Default:
{{id_glo}}
glo_cparam_use_env
string
optional
Default:
{{id_env}}
glo_cparam_use_prior
string
optional
Default:
{{priority_env}}
Body Params application/octet-stream
Uploaded File