From 11581d77f8beca9e4d171d84d68fe8926e81f28f Mon Sep 17 00:00:00 2001 From: zhilv Date: Mon, 1 Dec 2025 23:03:42 +0800 Subject: [PATCH] =?UTF-8?q?feat(server.test6):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=AE=9E=E9=AA=8C=206=20apifox=20=E5=AF=BC=E5=87=BA=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Server/tests/test6/Server.apifox.json | 741 ++++++++++++++++++++++++++ 1 file changed, 741 insertions(+) create mode 100644 Server/tests/test6/Server.apifox.json diff --git a/Server/tests/test6/Server.apifox.json b/Server/tests/test6/Server.apifox.json new file mode 100644 index 0000000..c1b666a --- /dev/null +++ b/Server/tests/test6/Server.apifox.json @@ -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": [] +} \ No newline at end of file