feat(server.test6): 新增实验 6 apifox 导出文件
This commit is contained in:
741
Server/tests/test6/Server.apifox.json
Normal file
741
Server/tests/test6/Server.apifox.json
Normal file
@@ -0,0 +1,741 @@
|
||||
{
|
||||
"apifoxProject": "1.0.0",
|
||||
"$schema": {
|
||||
"app": "apifox",
|
||||
"type": "project",
|
||||
"version": "1.2.0"
|
||||
},
|
||||
"info": {
|
||||
"name": "Server",
|
||||
"description": "",
|
||||
"mockRule": {
|
||||
"rules": [],
|
||||
"enableSystemRule": true
|
||||
}
|
||||
},
|
||||
"apiCollection": [
|
||||
{
|
||||
"name": "根目录",
|
||||
"id": 70829727,
|
||||
"auth": {},
|
||||
"securityScheme": {},
|
||||
"parentId": 0,
|
||||
"serverId": "",
|
||||
"description": "",
|
||||
"identityPattern": {
|
||||
"httpApi": {
|
||||
"type": "methodAndPath",
|
||||
"bodyType": "",
|
||||
"fields": []
|
||||
}
|
||||
},
|
||||
"shareSettings": {},
|
||||
"visibility": "SHARED",
|
||||
"moduleId": 6526371,
|
||||
"preProcessors": [
|
||||
{
|
||||
"id": "inheritProcessors",
|
||||
"type": "inheritProcessors",
|
||||
"data": {}
|
||||
}
|
||||
],
|
||||
"postProcessors": [
|
||||
{
|
||||
"id": "inheritProcessors",
|
||||
"type": "inheritProcessors",
|
||||
"data": {}
|
||||
}
|
||||
],
|
||||
"inheritPostProcessors": {},
|
||||
"inheritPreProcessors": {},
|
||||
"items": [
|
||||
{
|
||||
"name": "test6",
|
||||
"id": 72618886,
|
||||
"auth": {},
|
||||
"securityScheme": {},
|
||||
"parentId": 0,
|
||||
"serverId": "",
|
||||
"description": "",
|
||||
"identityPattern": {
|
||||
"httpApi": {
|
||||
"type": "inherit",
|
||||
"bodyType": "",
|
||||
"fields": []
|
||||
}
|
||||
},
|
||||
"shareSettings": {},
|
||||
"visibility": "INHERITED",
|
||||
"moduleId": 6526371,
|
||||
"preProcessors": [
|
||||
{
|
||||
"id": "inheritProcessors",
|
||||
"type": "inheritProcessors",
|
||||
"data": {}
|
||||
}
|
||||
],
|
||||
"postProcessors": [
|
||||
{
|
||||
"id": "inheritProcessors",
|
||||
"type": "inheritProcessors",
|
||||
"data": {}
|
||||
}
|
||||
],
|
||||
"inheritPostProcessors": {},
|
||||
"inheritPreProcessors": {},
|
||||
"items": [
|
||||
{
|
||||
"name": "session",
|
||||
"id": 72618899,
|
||||
"auth": {},
|
||||
"securityScheme": {},
|
||||
"parentId": 72618886,
|
||||
"serverId": "",
|
||||
"description": "",
|
||||
"identityPattern": {
|
||||
"httpApi": {
|
||||
"type": "inherit",
|
||||
"bodyType": "",
|
||||
"fields": []
|
||||
}
|
||||
},
|
||||
"shareSettings": {},
|
||||
"visibility": "INHERITED",
|
||||
"moduleId": 6526371,
|
||||
"preProcessors": [
|
||||
{
|
||||
"id": "inheritProcessors",
|
||||
"type": "inheritProcessors",
|
||||
"data": {}
|
||||
}
|
||||
],
|
||||
"postProcessors": [
|
||||
{
|
||||
"id": "inheritProcessors",
|
||||
"type": "inheritProcessors",
|
||||
"data": {}
|
||||
}
|
||||
],
|
||||
"inheritPostProcessors": {},
|
||||
"inheritPreProcessors": {},
|
||||
"items": [
|
||||
{
|
||||
"name": "login",
|
||||
"api": {
|
||||
"id": "384656340",
|
||||
"method": "post",
|
||||
"path": "http://localhost:3000/login",
|
||||
"parameters": {},
|
||||
"auth": {},
|
||||
"securityScheme": {},
|
||||
"commonParameters": {
|
||||
"query": [],
|
||||
"body": [],
|
||||
"cookie": [],
|
||||
"header": []
|
||||
},
|
||||
"responses": [
|
||||
{
|
||||
"id": "147278333",
|
||||
"code": 200,
|
||||
"name": "成功",
|
||||
"headers": [],
|
||||
"jsonSchema": {
|
||||
"type": "object",
|
||||
"properties": {}
|
||||
},
|
||||
"description": "",
|
||||
"contentType": "json",
|
||||
"mediaType": ""
|
||||
}
|
||||
],
|
||||
"responseExamples": [],
|
||||
"requestBody": {
|
||||
"type": "application/json",
|
||||
"parameters": [],
|
||||
"jsonSchema": {
|
||||
"type": "object",
|
||||
"properties": {}
|
||||
},
|
||||
"mediaType": "",
|
||||
"examples": [
|
||||
{
|
||||
"mediaType": "application/json",
|
||||
"value": "{\r\n \"username\": \"admin\",\r\n \"password\": \"password\"\r\n}"
|
||||
}
|
||||
],
|
||||
"oasExtensions": ""
|
||||
},
|
||||
"description": "",
|
||||
"tags": [],
|
||||
"status": "developing",
|
||||
"serverId": "",
|
||||
"operationId": "",
|
||||
"sourceUrl": "",
|
||||
"ordering": 10,
|
||||
"cases": [],
|
||||
"mocks": [],
|
||||
"customApiFields": "{}",
|
||||
"advancedSettings": {
|
||||
"disabledSystemHeaders": {}
|
||||
},
|
||||
"mockScript": {},
|
||||
"codeSamples": [],
|
||||
"commonResponseStatus": {},
|
||||
"responseChildren": [],
|
||||
"visibility": "INHERITED",
|
||||
"moduleId": 6526371,
|
||||
"oasExtensions": "",
|
||||
"type": "http",
|
||||
"preProcessors": [],
|
||||
"postProcessors": [],
|
||||
"inheritPostProcessors": {},
|
||||
"inheritPreProcessors": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "logout",
|
||||
"api": {
|
||||
"id": "384656414",
|
||||
"method": "post",
|
||||
"path": "http://localhost:3000/logout",
|
||||
"parameters": {},
|
||||
"auth": {},
|
||||
"securityScheme": {},
|
||||
"commonParameters": {
|
||||
"query": [],
|
||||
"body": [],
|
||||
"cookie": [],
|
||||
"header": []
|
||||
},
|
||||
"responses": [
|
||||
{
|
||||
"id": "147278333",
|
||||
"code": 200,
|
||||
"name": "成功",
|
||||
"headers": [],
|
||||
"jsonSchema": {
|
||||
"type": "object",
|
||||
"properties": {}
|
||||
},
|
||||
"description": "",
|
||||
"contentType": "json",
|
||||
"mediaType": ""
|
||||
}
|
||||
],
|
||||
"responseExamples": [],
|
||||
"requestBody": {
|
||||
"type": "none",
|
||||
"parameters": [],
|
||||
"jsonSchema": {
|
||||
"type": "object",
|
||||
"properties": {}
|
||||
},
|
||||
"mediaType": "",
|
||||
"examples": [
|
||||
{
|
||||
"mediaType": "application/json",
|
||||
"value": ""
|
||||
}
|
||||
],
|
||||
"oasExtensions": ""
|
||||
},
|
||||
"description": "",
|
||||
"tags": [],
|
||||
"status": "developing",
|
||||
"serverId": "",
|
||||
"operationId": "",
|
||||
"sourceUrl": "",
|
||||
"ordering": 16,
|
||||
"cases": [],
|
||||
"mocks": [],
|
||||
"customApiFields": "{}",
|
||||
"advancedSettings": {
|
||||
"disabledSystemHeaders": {}
|
||||
},
|
||||
"mockScript": {},
|
||||
"codeSamples": [],
|
||||
"commonResponseStatus": {},
|
||||
"responseChildren": [],
|
||||
"visibility": "INHERITED",
|
||||
"moduleId": 6526371,
|
||||
"oasExtensions": "",
|
||||
"type": "http",
|
||||
"preProcessors": [],
|
||||
"postProcessors": [],
|
||||
"inheritPostProcessors": {},
|
||||
"inheritPreProcessors": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "protected",
|
||||
"api": {
|
||||
"id": "384656680",
|
||||
"method": "get",
|
||||
"path": "http://localhost:3000/protected",
|
||||
"parameters": {},
|
||||
"auth": {},
|
||||
"securityScheme": {},
|
||||
"commonParameters": {
|
||||
"query": [],
|
||||
"body": [],
|
||||
"cookie": [],
|
||||
"header": []
|
||||
},
|
||||
"responses": [
|
||||
{
|
||||
"id": "180186952",
|
||||
"code": 200,
|
||||
"name": "成功",
|
||||
"jsonSchema": {
|
||||
"type": "object",
|
||||
"properties": {}
|
||||
},
|
||||
"contentType": "json"
|
||||
}
|
||||
],
|
||||
"responseExamples": [],
|
||||
"requestBody": {
|
||||
"type": "none",
|
||||
"parameters": [],
|
||||
"mediaType": "",
|
||||
"examples": [],
|
||||
"oasExtensions": ""
|
||||
},
|
||||
"description": "",
|
||||
"tags": [],
|
||||
"status": "developing",
|
||||
"serverId": "",
|
||||
"operationId": "",
|
||||
"sourceUrl": "",
|
||||
"ordering": 26,
|
||||
"cases": [],
|
||||
"mocks": [],
|
||||
"customApiFields": "{}",
|
||||
"advancedSettings": {
|
||||
"disabledSystemHeaders": {}
|
||||
},
|
||||
"mockScript": {},
|
||||
"codeSamples": [],
|
||||
"commonResponseStatus": {},
|
||||
"responseChildren": [],
|
||||
"visibility": "INHERITED",
|
||||
"moduleId": 6526371,
|
||||
"oasExtensions": "",
|
||||
"type": "http",
|
||||
"preProcessors": [],
|
||||
"postProcessors": [],
|
||||
"inheritPostProcessors": {},
|
||||
"inheritPreProcessors": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "profile",
|
||||
"api": {
|
||||
"id": "384656705",
|
||||
"method": "get",
|
||||
"path": "http://localhost:3000/profile",
|
||||
"parameters": {},
|
||||
"auth": {},
|
||||
"securityScheme": {},
|
||||
"commonParameters": {
|
||||
"query": [],
|
||||
"body": [],
|
||||
"cookie": [],
|
||||
"header": []
|
||||
},
|
||||
"responses": [
|
||||
{
|
||||
"id": "180186952",
|
||||
"code": 200,
|
||||
"name": "成功",
|
||||
"headers": [],
|
||||
"jsonSchema": {
|
||||
"type": "object",
|
||||
"properties": {}
|
||||
},
|
||||
"description": "",
|
||||
"contentType": "json",
|
||||
"mediaType": ""
|
||||
}
|
||||
],
|
||||
"responseExamples": [],
|
||||
"requestBody": {
|
||||
"type": "none",
|
||||
"parameters": [],
|
||||
"mediaType": "",
|
||||
"examples": [],
|
||||
"oasExtensions": ""
|
||||
},
|
||||
"description": "",
|
||||
"tags": [],
|
||||
"status": "developing",
|
||||
"serverId": "",
|
||||
"operationId": "",
|
||||
"sourceUrl": "",
|
||||
"ordering": 32,
|
||||
"cases": [],
|
||||
"mocks": [],
|
||||
"customApiFields": "{}",
|
||||
"advancedSettings": {
|
||||
"disabledSystemHeaders": {}
|
||||
},
|
||||
"mockScript": {},
|
||||
"codeSamples": [],
|
||||
"commonResponseStatus": {},
|
||||
"responseChildren": [],
|
||||
"visibility": "INHERITED",
|
||||
"moduleId": 6526371,
|
||||
"oasExtensions": "",
|
||||
"type": "http",
|
||||
"preProcessors": [],
|
||||
"postProcessors": [],
|
||||
"inheritPostProcessors": {},
|
||||
"inheritPreProcessors": {}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "jwt",
|
||||
"id": 72619067,
|
||||
"auth": {},
|
||||
"securityScheme": {},
|
||||
"parentId": 72618886,
|
||||
"serverId": "",
|
||||
"description": "",
|
||||
"identityPattern": {
|
||||
"httpApi": {
|
||||
"type": "inherit",
|
||||
"bodyType": "",
|
||||
"fields": []
|
||||
}
|
||||
},
|
||||
"shareSettings": {},
|
||||
"visibility": "INHERITED",
|
||||
"moduleId": 6526371,
|
||||
"preProcessors": [
|
||||
{
|
||||
"id": "inheritProcessors",
|
||||
"type": "inheritProcessors",
|
||||
"data": {}
|
||||
}
|
||||
],
|
||||
"postProcessors": [
|
||||
{
|
||||
"id": "inheritProcessors",
|
||||
"type": "inheritProcessors",
|
||||
"data": {}
|
||||
}
|
||||
],
|
||||
"inheritPostProcessors": {},
|
||||
"inheritPreProcessors": {},
|
||||
"items": [
|
||||
{
|
||||
"name": "login",
|
||||
"api": {
|
||||
"id": "384656726",
|
||||
"method": "post",
|
||||
"path": "http://localhost:3000/jwt-login",
|
||||
"parameters": {},
|
||||
"auth": {},
|
||||
"securityScheme": {},
|
||||
"commonParameters": {
|
||||
"query": [],
|
||||
"body": [],
|
||||
"cookie": [],
|
||||
"header": []
|
||||
},
|
||||
"responses": [
|
||||
{
|
||||
"id": "147278333",
|
||||
"code": 200,
|
||||
"name": "成功",
|
||||
"headers": [],
|
||||
"jsonSchema": {
|
||||
"type": "object",
|
||||
"properties": {}
|
||||
},
|
||||
"description": "",
|
||||
"contentType": "json",
|
||||
"mediaType": ""
|
||||
}
|
||||
],
|
||||
"responseExamples": [],
|
||||
"requestBody": {
|
||||
"type": "application/json",
|
||||
"parameters": [],
|
||||
"jsonSchema": {
|
||||
"type": "object",
|
||||
"properties": {}
|
||||
},
|
||||
"mediaType": "",
|
||||
"examples": [
|
||||
{
|
||||
"mediaType": "application/json",
|
||||
"value": "{\r\n \"username\": \"admin\",\r\n \"password\": \"password\"\r\n}"
|
||||
}
|
||||
],
|
||||
"oasExtensions": ""
|
||||
},
|
||||
"description": "",
|
||||
"tags": [],
|
||||
"status": "developing",
|
||||
"serverId": "",
|
||||
"operationId": "",
|
||||
"sourceUrl": "",
|
||||
"ordering": 0,
|
||||
"cases": [],
|
||||
"mocks": [],
|
||||
"customApiFields": "{}",
|
||||
"advancedSettings": {
|
||||
"disabledSystemHeaders": {}
|
||||
},
|
||||
"mockScript": {},
|
||||
"codeSamples": [],
|
||||
"commonResponseStatus": {},
|
||||
"responseChildren": [],
|
||||
"visibility": "INHERITED",
|
||||
"moduleId": 6526371,
|
||||
"oasExtensions": "",
|
||||
"type": "http",
|
||||
"preProcessors": [],
|
||||
"postProcessors": [],
|
||||
"inheritPostProcessors": {},
|
||||
"inheritPreProcessors": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "logout",
|
||||
"api": {
|
||||
"id": "384656727",
|
||||
"method": "post",
|
||||
"path": "http://localhost:3000/jwt-logout",
|
||||
"parameters": {
|
||||
"header": [
|
||||
{
|
||||
"required": false,
|
||||
"description": "",
|
||||
"type": "string",
|
||||
"id": "9c0W2V1ZxR",
|
||||
"example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjoxLCJ1c2VybmFtZSI6ImFkbWluIn0sImlhdCI6MTc2NDA0MDUxNCwiZXhwIjoxNzY0MDQ0MTE0fQ.KNi5c8lQdn15duALOHg6RYLMxyi-15aBZR1psHzCXlk",
|
||||
"enable": true,
|
||||
"name": "Authorization"
|
||||
}
|
||||
]
|
||||
},
|
||||
"auth": {},
|
||||
"securityScheme": {},
|
||||
"commonParameters": {
|
||||
"query": [],
|
||||
"body": [],
|
||||
"cookie": [],
|
||||
"header": []
|
||||
},
|
||||
"responses": [
|
||||
{
|
||||
"id": "147278333",
|
||||
"code": 200,
|
||||
"name": "成功",
|
||||
"headers": [],
|
||||
"jsonSchema": {
|
||||
"type": "object",
|
||||
"properties": {}
|
||||
},
|
||||
"description": "",
|
||||
"contentType": "json",
|
||||
"mediaType": ""
|
||||
}
|
||||
],
|
||||
"responseExamples": [],
|
||||
"requestBody": {
|
||||
"type": "none",
|
||||
"parameters": [],
|
||||
"jsonSchema": {
|
||||
"type": "object",
|
||||
"properties": {}
|
||||
},
|
||||
"mediaType": "",
|
||||
"examples": [
|
||||
{
|
||||
"mediaType": "application/json",
|
||||
"value": ""
|
||||
}
|
||||
],
|
||||
"oasExtensions": ""
|
||||
},
|
||||
"description": "",
|
||||
"tags": [],
|
||||
"status": "developing",
|
||||
"serverId": "",
|
||||
"operationId": "",
|
||||
"sourceUrl": "",
|
||||
"ordering": 0,
|
||||
"cases": [],
|
||||
"mocks": [],
|
||||
"customApiFields": "{}",
|
||||
"advancedSettings": {
|
||||
"disabledSystemHeaders": {}
|
||||
},
|
||||
"mockScript": {},
|
||||
"codeSamples": [],
|
||||
"commonResponseStatus": {},
|
||||
"responseChildren": [],
|
||||
"visibility": "INHERITED",
|
||||
"moduleId": 6526371,
|
||||
"oasExtensions": "",
|
||||
"type": "http",
|
||||
"preProcessors": [],
|
||||
"postProcessors": [],
|
||||
"inheritPostProcessors": {},
|
||||
"inheritPreProcessors": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "profile",
|
||||
"api": {
|
||||
"id": "384656729",
|
||||
"method": "get",
|
||||
"path": "http://localhost:3000/jwt-profile",
|
||||
"parameters": {
|
||||
"header": [
|
||||
{
|
||||
"required": false,
|
||||
"description": "",
|
||||
"type": "string",
|
||||
"id": "CA9mFNswTU",
|
||||
"example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjoxLCJ1c2VybmFtZSI6ImFkbWluIn0sImlhdCI6MTc2NDA0MDUxNCwiZXhwIjoxNzY0MDQ0MTE0fQ.KNi5c8lQdn15duALOHg6RYLMxyi-15aBZR1psHzCXlk",
|
||||
"enable": true,
|
||||
"name": "Authorization"
|
||||
}
|
||||
]
|
||||
},
|
||||
"auth": {},
|
||||
"securityScheme": {},
|
||||
"commonParameters": {
|
||||
"query": [],
|
||||
"body": [],
|
||||
"cookie": [],
|
||||
"header": []
|
||||
},
|
||||
"responses": [
|
||||
{
|
||||
"id": "180186952",
|
||||
"code": 200,
|
||||
"name": "成功",
|
||||
"headers": [],
|
||||
"jsonSchema": {
|
||||
"type": "object",
|
||||
"properties": {}
|
||||
},
|
||||
"description": "",
|
||||
"contentType": "json",
|
||||
"mediaType": ""
|
||||
}
|
||||
],
|
||||
"responseExamples": [],
|
||||
"requestBody": {
|
||||
"type": "none",
|
||||
"parameters": [],
|
||||
"mediaType": "",
|
||||
"examples": [],
|
||||
"oasExtensions": ""
|
||||
},
|
||||
"description": "",
|
||||
"tags": [],
|
||||
"status": "developing",
|
||||
"serverId": "",
|
||||
"operationId": "",
|
||||
"sourceUrl": "",
|
||||
"ordering": 0,
|
||||
"cases": [],
|
||||
"mocks": [],
|
||||
"customApiFields": "{}",
|
||||
"advancedSettings": {
|
||||
"disabledSystemHeaders": {}
|
||||
},
|
||||
"mockScript": {},
|
||||
"codeSamples": [],
|
||||
"commonResponseStatus": {},
|
||||
"responseChildren": [],
|
||||
"visibility": "INHERITED",
|
||||
"moduleId": 6526371,
|
||||
"oasExtensions": "",
|
||||
"type": "http",
|
||||
"preProcessors": [],
|
||||
"postProcessors": [],
|
||||
"inheritPostProcessors": {},
|
||||
"inheritPreProcessors": {}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"socketCollection": [],
|
||||
"docCollection": [],
|
||||
"webSocketCollection": [],
|
||||
"socketIOCollection": [],
|
||||
"responseCollection": [],
|
||||
"schemaCollection": [],
|
||||
"securitySchemeCollection": [],
|
||||
"requestCollection": [
|
||||
{
|
||||
"name": "根目录",
|
||||
"children": [],
|
||||
"ordering": [
|
||||
"requestFolder.7895936"
|
||||
],
|
||||
"items": []
|
||||
}
|
||||
],
|
||||
"environments": [],
|
||||
"commonScripts": [],
|
||||
"globalVariables": [],
|
||||
"commonParameters": null,
|
||||
"projectSetting": {
|
||||
"id": "7426031",
|
||||
"auth": {},
|
||||
"securityScheme": {},
|
||||
"gateway": [],
|
||||
"language": "zh-CN",
|
||||
"apiStatuses": [
|
||||
"developing",
|
||||
"testing",
|
||||
"released",
|
||||
"deprecated"
|
||||
],
|
||||
"mockSettings": {},
|
||||
"preProcessors": [],
|
||||
"postProcessors": [],
|
||||
"advancedSettings": {
|
||||
"enableJsonc": false,
|
||||
"enableBigint": false,
|
||||
"responseValidate": true,
|
||||
"enableTestScenarioSetting": false,
|
||||
"enableYAPICompatScript": false,
|
||||
"isDefaultUrlEncoding": 2,
|
||||
"publishedDocUrlRules": {
|
||||
"defaultRule": "RESOURCE_KEY_ONLY",
|
||||
"resourceKeyStandard": "NEW"
|
||||
}
|
||||
},
|
||||
"initialDisabledMockIds": [],
|
||||
"servers": [
|
||||
{
|
||||
"id": "default",
|
||||
"name": "默认服务"
|
||||
}
|
||||
],
|
||||
"cloudMock": {
|
||||
"security": "free",
|
||||
"enable": false,
|
||||
"tokenKey": "apifoxToken"
|
||||
}
|
||||
},
|
||||
"customFunctions": [],
|
||||
"projectAssociations": []
|
||||
}
|
||||
Reference in New Issue
Block a user