1_开发中_全参数测试-接口文档默认mock
POST
/regression/api_status/developing/{p_string}/{p_int}/{p_number}/doc
👀 A_接口状态_看效果UIDisplayTestemoji😸(*^▽^*)😊echo $PATHinclude
1_测试中43785151
1_不存在
文档跳转_338429
文档不存在
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST '/regression/api_status/developing/test/1234/11.23/doc?query_fixed=q_fixed&query_string=sss&query_api_on=q_value_on&query_api_off=q_value_off&query_api_var=q_{{api_var}}&query_api_dynamic={% mock '\''pick'\'' , ['\''querypick'\''] %}&query_int=22&query_num=33.33&query_array=apple&query_array=peach&q_on_gp=q_on_gp_value&q_on_gp_request_off=q_on_gp_request_off_value' \
--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_on_gp: h_on_gp_value' \
--header 'h_on_gp_request_off: h_on_gp_case_off_value' \
--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=c_on_gp_value;c_on_gp_request_off=c_on_gp_request_off_value' \
--form 'body_api_on="b_value_on"' \
--form 'body_api_off="b_value_off"' \
--form 'body_api_var="b_{{api_var}}"' \
--form 'body_api_dymic="{% mock '\''pick'\'' , ['\''bodypick'\''] %}"' \
--form 'body_string="hello"' \
--form 'body_int="1234"' \
--form 'body_number="33.33"' \
--form 'body_file=@"cmMtdXBsb2FkLTE2NjA5MTMxNjc5NjYtMg==/优惠券.postman_collection.json"' \
--form 'body_array="aaaa"' \
--form 'body_array="bbbb"' \
--form 'b_on_gp="b_on_gp_value"' \
--form 'b_on_gp_request_off="b_on_gp_request_off_value"'
Response Response Example
200 - Example 1
{
"f_datatype_halfRef": {
"SmartMock": {
"match_ip": "string",
"dismatch_ip": true
}
},
"f_datatype_allRef": {
"name": "string",
"id": 0
},
"f_string": "available",
"f_int": 0,
"f_bool": true,
"f_array": [
"tttt"
],
"f_obj": {
"name": "string",
"id": "string",
"f_obj_array": [
"string"
],
"f_obj_obj": {
"xx_id": "string",
"xx_name": "string"
}
},
"f_obj_unnecessary": {
"id": "string",
"name": "string"
},
"f_number": 0,
"f_null": null,
"f_any": "string",
"f_allof": {
"name": "string",
"id": "string",
"id2": "string"
},
"f_oneof": {
"name0": "string",
"id0": "string"
},
"f_anyof": {
"name": "string",
"id": "string"
},
"f_required_nullable": "1970-01-10",
"f_unrequired_notnull": "string",
"multi": {
"f_array_array": [
[
"string"
]
],
"f_array_obj": [
{
"name": "string",
"id": "string"
}
]
},
"f_bigint": 0,
"AdvanceSetting": {
"int": {
"f_int_customValue": 1001,
"f_int_customValue0": 0
}
}
}
Request
Path Params
p_string
string
required
Example:
test
p_int
integer
required
Example:
1234
p_number
number
required
Example:
11.23
Query Params
query_fixed
string
required
Example:
q_fixed
query_string
string
required
Example:
sss
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_dynamic
string
required
Example:
{% mock 'pick' , ['querypick'] %}
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_on_gp
string
required
Example:
q_on_gp_value
query_same_1
string
optional
Example:
query_same_1_gp
q_on_gp_request_off
string
required
Default:
q_on_gp_request_off_value
Example:
q_on_gp_request_off_value
glo_qparam_use_glo
string
optional
Default:
{{id_glo}}
Example:
{{id_glo}}
glo_qparam_use_env
string
optional
Default:
{{id_env}}
Example:
{{id_env}}
glo_qparam_use_prior
string
optional
Default:
{{priority_env}}
Example:
{{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_on_gp
string
required
Default:
h_on_gp_defult
Example:
h_on_gp_value
header_same_1
string
optional
Default:
header_same_1_gp_defult
Example:
header_same_1_gp
plat-form
string
optional
Default:
{{header}}_defult
Example:
{{header}}
Cookie
string
optional
Example:
c1=cookieInGlobalHeader
h_on_gp_request_off
string
required
Default:
h_on_gp_case_off_value
Example:
h_on_gp_case_off_value
glo_hparam_use_glo
string
optional
Default:
{{id_glo}}
Example:
{{id_glo}}
glo_hparam_use_env
string
optional
Default:
{{id_env}}
Example:
{{id_env}}
glo_hparam_use_prior
string
optional
Default:
{{priority_env}}
Example:
{{priority_env}}
header_long
string
optional
Default:
l=eBO-G2Fng9CH5uxF2Ofahurza77OSIOYYuPzaNbMiOCP_Xfp5gxlW6pndVL9C31Vh6DWR3-82bJHBeYBcIfEiOp2AJ-YF8Mmnl=eBO-G2Fng9CH5uxF2Ofahurza77OSIOYYuPzaNbMiOCP_Xfp5gxlW6pndVL9C31Vh6DWR3-82bJHBeYBcIfEiOp2AJ-YF8Mmn=end
Example:
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_on_gp
string
required
Example:
c_on_gp_value
cookie_same_1
string
optional
Example:
cookie_same_1_gp
cookie_long
string
optional
Example:
l=eBO-G2Fng9CH5uxF2Ofahurza77OSIOYYuPzaNbMiOCP_Xfp5gxlW6pndVL9C31Vh6DWR3-82bJHBeYBcIfEiOp2AJ-YF8Mmn
c1
string
optional
Default:
cookieInGlobalCookie_defult
Example:
cookieInGlobalCookie
c_on_gp_request_off
string
required
Default:
c_on_gp_request_off_value
Example:
c_on_gp_request_off_value
glo_cparam_use_glo
string
optional
Default:
{{id_glo}}
Example:
{{id_glo}}
glo_cparam_use_env
string
optional
Default:
{{id_env}}
Example:
{{id_env}}
glo_cparam_use_prior
string
optional
Default:
{{priority_env}}
Example:
{{priority_env}}
Body Params multipart/form-data
body_api_on
integer
required
Example:
b_value_on
body_api_off
string
required
Example:
b_value_off
body_api_var
string
required
Example:
b_{{api_var}}
body_api_dymic
string
required
Example:
{% mock 'pick' , ['bodypick'] %}
body_string
string
required
Example:
hello
body_int
integer
required
Example:
1234
body_number
number
required
Example:
33.33
body_file
file
required
Example:
cmMtdXBsb2FkLTE2NjA5MTMxNjc5NjYtMg==/优惠券.postman_collection.json
body_array
array[string]
required
Example:
["aaaa","bbbb"]
body_unrequired
string
optional
Example:
unrequired
file_sha256
string
optional
>= 64 characters<= 64 characters
Example:
Match pattern:
[a-fA-F0-9]{64}
ocr_enum
enum<string>
optional
Allowed values:
pendingcomplatedfailed
Example:
b_on_gp
string
required
Example:
b_on_gp_value
body_same_1
string
optional
Example:
body_same_1_gp
test
string
optional
Example:
000
b_on_gp_request_off
string
required
Default:
b_on_gp_request_off_value
Example:
b_on_gp_request_off_value
glo_bparam_use_glo
string
optional
Default:
{{id_glo}}
Example:
{{id_glo}}
glo_bparam_use_env
string
optional
Default:
{{id_env}}
Example:
{{id_env}}
glo_bparam_use_prior
string
optional
Default:
{{priority_env}}
Example:
{{priority_env}}