特殊-带必填参数的动态值-部分动态值选择参数时会显示为必填
开发中
GET
/fakerjs/Required
最后修改时间:2024-10-09 09:41:07
责任人:未设置
手动添加的时候就会显示必填参数默认值
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://m1.apifoxmock.com/m1/1748827-0-default/fakerjs/Required?regular={{$helpers.fromRegExp('\''/[A-Z0-9]{4}-[A-Z0-9]{4}/'\'')}}&arrayElement={{$helpers.arrayElements(['\''abc'\'','\''123'\''])}}&arrayElements={{$helpers.arrayElement(['\''abc'\'','\''123'\''])}}&replaceSymbols={{$helpers.replaceSymbols('\''##??**'\'')}}&slugify={{$helpers.slugify('\''abc 123'\'')}}&q_on_gp=&query_same_1=query_same_1_gp&q_on_gp_request_off=&glo_qparam_use_glo={{id_glo}}&glo_qparam_use_env={{id_env}}&glo_qparam_use_prior={{priority_env}}' \
--header 'h_on_gp;' \
--header 'header_same_1: header_same_1_gp' \
--header 'plat-form: {{header}}' \
--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: c_on_gp=;c_on_gp_request_off=;c_on_gp=c_on_gp_value;cookie_same_1=cookie_same_1_gp;cookie_long=l=eBO-G2Fng9CH5uxF2Ofahurza77OSIOYYuPzaNbMiOCP_Xfp5gxlW6pndVL9C31Vh6DWR3-82bJHBeYBcIfEiOp2AJ-YF8Mmn;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/json' \
--data-raw '{
"regular": "{{$helpers.fromRegExp('\''/[A-Z0-9]{4}-[A-Z0-9]{4}/'\'')}}",
"arrayElement": "{{$helpers.arrayElements(['\''abc'\'','\''123'\''])}}",
"arrayElements": "{{$helpers.arrayElement(['\''abc'\'','\''123'\''])}}",
"replaceSymbols": "{{$helpers.replaceSymbols('\''##??**'\'')}}",
"slugify": "{{$helpers.slugify('\''abc 123'\'')}}"
}'
响应示例响应示例
200 - 示例 1
{
"test": "string"
}
请求参数
Query 参数
regular
string
可选
示例值:
{{$helpers.fromRegExp('/[A-Z0-9]{4}-[A-Z0-9]{4}/')}}
arrayElement
string
返回列表内单个子集
示例值:
{{$helpers.arrayElements(['abc','123'])}}
arrayElements
string
返回列表内的单个值
示例值:
{{$helpers.arrayElement(['abc','123'])}}
replaceSymbols
string
可选
示例值:
{{$helpers.replaceSymbols('##??**')}}
slugify
string
可选
示例值:
{{$helpers.slugify('abc 123')}}
q_on_gp
string
必需
默认值:
q_on_gp_value
query_same_1
string
可选
默认值:
query_same_1_gp
q_on_gp_request_off
string
必需
默认值:
q_on_gp_request_off_value
glo_qparam_use_glo
string
可选
默认值:
{{id_glo}}
glo_qparam_use_env
string
可选
默认值:
{{id_env}}
glo_qparam_use_prior
string
可选
默认值:
{{priority_env}}
Header 参数
h_on_gp
string
必需
默认值:
h_on_gp_value
header_same_1
string
可选
默认值:
header_same_1_gp
plat-form
string
可选
默认值:
{{header}}
Cookie
string
可选
默认值:
c1=cookieInGlobalHeader
h_on_gp_request_off
string
必需
默认值:
h_on_gp_case_off_value
glo_hparam_use_glo
string
可选
默认值:
{{id_glo}}
glo_hparam_use_env
string
可选
默认值:
{{id_env}}
glo_hparam_use_prior
string
可选
默认值:
{{priority_env}}
header_long
string
可选
默认值:
l=eBO-G2Fng9CH5uxF2Ofahurza77OSIOYYuPzaNbMiOCP_Xfp5gxlW6pndVL9C31Vh6DWR3-82bJHBeYBcIfEiOp2AJ-YF8Mmnl=eBO-G2Fng9CH5uxF2Ofahurza77OSIOYYuPzaNbMiOCP_Xfp5gxlW6pndVL9C31Vh6DWR3-82bJHBeYBcIfEiOp2AJ-YF8Mmn=end
Cookie 参数
c_on_gp
string
必需
默认值:
c_on_gp_value
cookie_same_1
string
可选
默认值:
cookie_same_1_gp
cookie_long
string
可选
默认值:
l=eBO-G2Fng9CH5uxF2Ofahurza77OSIOYYuPzaNbMiOCP_Xfp5gxlW6pndVL9C31Vh6DWR3-82bJHBeYBcIfEiOp2AJ-YF8Mmn
c1
string
勿改-测试
默认值:
cookieInGlobalCookie
c_on_gp_request_off
string
必需
默认值:
c_on_gp_request_off_value
glo_cparam_use_glo
string
可选
默认值:
{{id_glo}}
glo_cparam_use_env
string
可选
默认值:
{{id_env}}
glo_cparam_use_prior
string
可选
默认值:
{{priority_env}}
Body 参数application/json
返回响应

修改于 2024-10-09 09:41:07