{
"apiCode": 327138912739,
"definition": {}
}
curl --location --request POST 'https://m1.apifoxmock.com/m1/2270273-0-default/agw/api/pre-check' \
--header 'jwt: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOjE4MjA3NCwidGVuYW50SWQiOjk5NDg3MDcsInVzZXJOYW1lIjoiY3R5dW4wYTFjMzI1MmI2MjQ0NzEyMTcyNTQyMjU3MSIsInRlbmFudE5hbWUiOiJtc2FwX21zZV9jc21fZGV2X21hc3RlckBxcS5jb20jcGFhczQwIiwidGVuYW50Q29kZSI6IkN0eXVuM2UxNjIxYTY3YjQwNDY0MjE3MjU0MjI1NzEiLCJidXNpVXNlcklkIjpudWxsLCJidXNpVGVuYW50SWQiOm51bGwsImJ1c2lUZW5hbnROYW1lIjpudWxsLCJhY2NvdW50VHlwZSI6MCwiaXNPd25lciI6dHJ1ZSwicmVhbE5hbWUiOiJtc2FwX21zZV9jc21fZGV2IiwicmVxU291cmNlIjoiMDEiLCJ2ZXJzaW9uTm8iOiIzLjAuMCIsInJlc1Bvb2xDb2RlIjoiYjM0MmI3N2VmMjZiMTFlY2IwYWMwMjQyYWMxMTAwMDIiLCJwcml2YXRlS2V5IjpudWxsLCJvdXRlclRlbmFudElkIjoiM2UxNjIxYTY3YjQwNDY0MmIxMDAxMDc3YzcxYmE3OWYiLCJvdXRlclVzZXJJZCI6IjBhMWMzMjUyYjYyNDQ3MTJiNmNiM2FhMGU1YTc5M2JmIiwiYWdlbnRVc2VySWQiOm51bGwsImFnZW50VGVuYW50SWQiOm51bGwsImlhdCI6MTczMjUxOTQ3NCwiaXNzIjoiZmlyc3R6dXVsIiwiZXhwIjoyMzMyNTE5NDc0fQ.XiXnJQmUSVc8I-IVY99JE5VmHMvM8dydDpD9xC5St8g' \
--header 'Content-Type: application/json' \
--data-raw '{
"apiCode": 327138912739,
"definition": {}
}'
{
"code": 200,
"data": {
"failedPreCheckApiList": [
{
"action": "create",
"description": "this is a description",
"errorMsg": "failed message",
"method": "GET",
"mock": {
"enable": true,
"responseCode": 200,
"responseContent": "{\"num\":100}"
},
"name": "test_api",
"path": "/test",
"request": {
"body": {
"contentType": "application/json;charset=UTF-8",
"example": {},
"jsonSchema": {}
},
"headerParameters": [
{
"defaultValue": "hello",
"description": "这是一个参数",
"exampleValue": "hello",
"name": "p1",
"required": true,
"type": "String"
}
],
"pathParameters": [
{
"defaultValue": "hello",
"description": "这是一个参数",
"exampleValue": "hello",
"name": "p1",
"required": true,
"type": "String"
}
],
"queryParameters": [
{
"defaultValue": "hello",
"description": "这是一个参数",
"exampleValue": "hello",
"name": "p1",
"required": true,
"type": "String"
}
]
},
"response": {
"contentType": "application/json;charset=utf-8",
"items": [
{
"code": 200,
"description": "成功",
"example": {},
"jsonSchema": {}
}
]
}
}
],
"successPreCheckApiList": [
{
"action": "create",
"description": "this is a description",
"errorMsg": "failed message",
"method": "GET",
"mock": {
"enable": true,
"responseCode": 200,
"responseContent": "{\"num\":100}"
},
"name": "test_api",
"path": "/test",
"request": {
"body": {
"contentType": "application/json;charset=UTF-8",
"example": {},
"jsonSchema": {}
},
"headerParameters": [
{
"defaultValue": "hello",
"description": "这是一个参数",
"exampleValue": "hello",
"name": "p1",
"required": true,
"type": "String"
}
],
"pathParameters": [
{
"defaultValue": "hello",
"description": "这是一个参数",
"exampleValue": "hello",
"name": "p1",
"required": true,
"type": "String"
}
],
"queryParameters": [
{
"defaultValue": "hello",
"description": "这是一个参数",
"exampleValue": "hello",
"name": "p1",
"required": true,
"type": "String"
}
]
},
"response": {
"contentType": "application/json;charset=utf-8",
"items": [
{
"code": 200,
"description": "成功",
"example": {},
"jsonSchema": {}
}
]
}
}
]
},
"message": "success",
"requestId": "123456789-adc"
}