{ "openapi": "3.0.0", "paths": { "/": { "get": { "operationId": "AppController_getHello", "parameters": [], "responses": { "200": { "description": "" } }, "tags": [ "App" ] } }, "/projects": { "get": { "operationId": "ProjectController_findAll", "parameters": [], "responses": { "200": { "description": "" } }, "tags": [ "Project" ] }, "post": { "operationId": "ProjectController_create", "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateProjectDto" } } } }, "responses": { "201": { "description": "" } }, "tags": [ "Project" ] } }, "/projects/{id}": { "get": { "operationId": "ProjectController_findOne", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "responses": { "200": { "description": "" } }, "tags": [ "Project" ] }, "put": { "operationId": "ProjectController_update", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateProjectDto" } } } }, "responses": { "200": { "description": "" } }, "tags": [ "Project" ] }, "delete": { "operationId": "ProjectController_remove", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "responses": { "204": { "description": "" } }, "tags": [ "Project" ] } }, "/projects/{id}/tests": { "get": { "operationId": "ProjectController_getProjectTests", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "responses": { "200": { "description": "" } }, "tags": [ "Project" ] } }, "/projects/{id}/statistics": { "get": { "operationId": "ProjectController_getStatistics", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "responses": { "200": { "description": "" } }, "tags": [ "Project" ] } }, "/projects/search/by-name": { "get": { "operationId": "ProjectController_searchByName", "parameters": [ { "name": "name", "required": true, "in": "query", "schema": { "type": "string" } } ], "responses": { "200": { "description": "" } }, "tags": [ "Project" ] } }, "/pages": { "get": { "operationId": "PageController_findAll", "parameters": [], "responses": { "200": { "description": "" } }, "tags": [ "Page" ] }, "post": { "operationId": "PageController_create", "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreatePageDto" } } } }, "responses": { "201": { "description": "" } }, "tags": [ "Page" ] } }, "/pages/{id}": { "get": { "operationId": "PageController_findOne", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "responses": { "200": { "description": "" } }, "tags": [ "Page" ] }, "put": { "operationId": "PageController_update", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdatePageDto" } } } }, "responses": { "200": { "description": "" } }, "tags": [ "Page" ] }, "delete": { "operationId": "PageController_remove", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "responses": { "204": { "description": "" } }, "tags": [ "Page" ] } }, "/tests": { "get": { "operationId": "TestController_findAll", "parameters": [], "responses": { "200": { "description": "" } }, "tags": [ "Test" ] }, "post": { "operationId": "TestController_create", "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateTestDto" } } } }, "responses": { "201": { "description": "" } }, "tags": [ "Test" ] } }, "/tests/{id}": { "get": { "operationId": "TestController_findOne", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "responses": { "200": { "description": "" } }, "tags": [ "Test" ] }, "put": { "operationId": "TestController_update", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateTestDto" } } } }, "responses": { "200": { "description": "" } }, "tags": [ "Test" ] }, "delete": { "operationId": "TestController_remove", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "responses": { "204": { "description": "" } }, "tags": [ "Test" ] } }, "/tests/project/{projectId}": { "get": { "operationId": "TestController_findByProject", "parameters": [ { "name": "projectId", "required": true, "in": "path", "schema": { "type": "number" } } ], "responses": { "200": { "description": "" } }, "tags": [ "Test" ] } }, "/tests/bulk": { "post": { "operationId": "TestController_createBulk", "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BulkCreateTestsDto" } } } }, "responses": { "201": { "description": "" } }, "tags": [ "Test" ] } }, "/logs": { "get": { "operationId": "LogController_findAll", "parameters": [], "responses": { "200": { "description": "" } }, "tags": [ "Log" ] }, "post": { "operationId": "LogController_create", "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateLogDto" } } } }, "responses": { "201": { "description": "" } }, "tags": [ "Log" ] } }, "/logs/{id}": { "get": { "operationId": "LogController_findOne", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "responses": { "200": { "description": "" } }, "tags": [ "Log" ] }, "put": { "operationId": "LogController_update", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateLogDto" } } } }, "responses": { "200": { "description": "" } }, "tags": [ "Log" ] }, "delete": { "operationId": "LogController_remove", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "responses": { "204": { "description": "" } }, "tags": [ "Log" ] } }, "/settings": { "get": { "operationId": "SettingController_findAll", "parameters": [ { "name": "projectId", "required": true, "in": "query", "schema": { "type": "string" } } ], "responses": { "200": { "description": "" } }, "tags": [ "Setting" ] }, "post": { "operationId": "SettingController_create", "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateSettingDto" } } } }, "responses": { "201": { "description": "" } }, "tags": [ "Setting" ] } }, "/settings/{id}": { "get": { "operationId": "SettingController_findOne", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "responses": { "200": { "description": "" } }, "tags": [ "Setting" ] }, "put": { "operationId": "SettingController_update", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateSettingDto" } } } }, "responses": { "200": { "description": "" } }, "tags": [ "Setting" ] }, "delete": { "operationId": "SettingController_remove", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "responses": { "204": { "description": "" } }, "tags": [ "Setting" ] } }, "/settings/system": { "put": { "operationId": "SettingController_updateSystemSettings", "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SystemSettingsDto" } } } }, "responses": { "200": { "description": "" } }, "tags": [ "Setting" ] } }, "/api-endpoints": { "get": { "operationId": "ApiEndpointController_findAll", "parameters": [], "responses": { "200": { "description": "" } }, "tags": [ "ApiEndpoint" ] }, "post": { "operationId": "ApiEndpointController_create", "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateApiEndpointDto" } } } }, "responses": { "201": { "description": "" } }, "tags": [ "ApiEndpoint" ] } }, "/api-endpoints/{id}": { "get": { "operationId": "ApiEndpointController_findOne", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "responses": { "200": { "description": "" } }, "tags": [ "ApiEndpoint" ] }, "put": { "operationId": "ApiEndpointController_update", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateApiEndpointDto" } } } }, "responses": { "200": { "description": "" } }, "tags": [ "ApiEndpoint" ] }, "delete": { "operationId": "ApiEndpointController_remove", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "responses": { "204": { "description": "" } }, "tags": [ "ApiEndpoint" ] } }, "/ai-models": { "get": { "operationId": "AiModelController_findAll", "parameters": [], "responses": { "200": { "description": "" } }, "tags": [ "AiModel" ] }, "post": { "operationId": "AiModelController_create", "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateAiModelDto" } } } }, "responses": { "201": { "description": "" } }, "tags": [ "AiModel" ] } }, "/ai-models/{id}": { "get": { "operationId": "AiModelController_findOne", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "responses": { "200": { "description": "" } }, "tags": [ "AiModel" ] }, "put": { "operationId": "AiModelController_update", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateAiModelDto" } } } }, "responses": { "200": { "description": "" } }, "tags": [ "AiModel" ] }, "delete": { "operationId": "AiModelController_remove", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "responses": { "204": { "description": "" } }, "tags": [ "AiModel" ] } }, "/saved-tests": { "get": { "operationId": "SavedTestController_findAll", "parameters": [], "responses": { "200": { "description": "" } }, "tags": [ "SavedTest" ] }, "post": { "operationId": "SavedTestController_create", "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateSavedTestDto" } } } }, "responses": { "201": { "description": "" } }, "tags": [ "SavedTest" ] } }, "/saved-tests/{id}": { "get": { "operationId": "SavedTestController_findOne", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "responses": { "200": { "description": "" } }, "tags": [ "SavedTest" ] }, "put": { "operationId": "SavedTestController_update", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateSavedTestDto" } } } }, "responses": { "200": { "description": "" } }, "tags": [ "SavedTest" ] }, "delete": { "operationId": "SavedTestController_remove", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "responses": { "204": { "description": "" } }, "tags": [ "SavedTest" ] } }, "/saved-tests/{id}/execute": { "post": { "operationId": "SavedTestController_execute", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "responses": { "201": { "description": "" } }, "tags": [ "SavedTest" ] } }, "/api-collections": { "get": { "operationId": "ApiCollectionController_findAll", "parameters": [ { "name": "projectId", "required": true, "in": "query", "schema": { "type": "string" } } ], "responses": { "200": { "description": "" } }, "tags": [ "ApiCollection" ] }, "post": { "operationId": "ApiCollectionController_create", "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateApiCollectionDto" } } } }, "responses": { "201": { "description": "" } }, "tags": [ "ApiCollection" ] } }, "/api-collections/{id}": { "get": { "operationId": "ApiCollectionController_findOne", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "responses": { "200": { "description": "" } }, "tags": [ "ApiCollection" ] }, "put": { "operationId": "ApiCollectionController_update", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateApiCollectionDto" } } } }, "responses": { "200": { "description": "" } }, "tags": [ "ApiCollection" ] }, "delete": { "operationId": "ApiCollectionController_remove", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "responses": { "200": { "description": "" } }, "tags": [ "ApiCollection" ] } }, "/api-collections/{id}/endpoints": { "get": { "operationId": "ApiCollectionController_listEndpoints", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "responses": { "200": { "description": "" } }, "tags": [ "ApiCollection" ] }, "post": { "operationId": "ApiCollectionController_addEndpoints", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AddEndpointsToCollectionDto" } } } }, "responses": { "201": { "description": "" } }, "tags": [ "ApiCollection" ] }, "delete": { "operationId": "ApiCollectionController_removeEndpoints", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AddEndpointsToCollectionDto" } } } }, "responses": { "200": { "description": "" } }, "tags": [ "ApiCollection" ] } }, "/api-collections/{id}/run": { "post": { "operationId": "ApiCollectionController_runCollection", "parameters": [ { "name": "id", "required": true, "in": "path", "schema": { "type": "number" } } ], "responses": { "201": { "description": "" } }, "tags": [ "ApiCollection" ] } }, "/api-collections/import-openapi": { "post": { "operationId": "ApiCollectionController_importOpenApi", "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ImportOpenApiDto" } } } }, "responses": { "201": { "description": "" } }, "tags": [ "ApiCollection" ] } }, "/scanner/scan": { "post": { "operationId": "ScannerController_scan", "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ScanUrlDto" } } } }, "responses": { "201": { "description": "" } }, "tags": [ "Scanner" ] } }, "/test-generator/generate": { "post": { "operationId": "TestGeneratorController_generate", "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenerateTestsDto" } } } }, "responses": { "201": { "description": "" } }, "tags": [ "TestGenerator" ] } } }, "info": { "title": "AI Test Platform API", "description": "API documentation for the AI Test Platform", "version": "1.0.0", "contact": {} }, "tags": [], "servers": [], "components": { "schemas": { "CreateProjectDto": { "type": "object", "properties": { "name": { "type": "string" }, "baseUrl": { "type": "string" }, "description": { "type": "string" } }, "required": [ "name", "baseUrl" ] }, "UpdateProjectDto": { "type": "object", "properties": { "name": { "type": "string" }, "baseUrl": { "type": "string" }, "description": { "type": "string" } } }, "CreatePageDto": { "type": "object", "properties": { "url": { "type": "string" }, "requirements": { "type": "string" }, "projectId": { "type": "number" } }, "required": [ "url", "projectId" ] }, "UpdatePageDto": { "type": "object", "properties": { "url": { "type": "string" }, "requirements": { "type": "string" } } }, "CreateTestDto": { "type": "object", "properties": { "name": { "type": "string" }, "description": { "type": "string" }, "status": { "type": "string" }, "framework": { "type": "string" }, "script": { "type": "string" }, "projectId": { "type": "number" } }, "required": [ "projectId" ] }, "BulkCreateTestItemDto": { "type": "object", "properties": { "name": { "type": "string" }, "description": { "type": "string" }, "framework": { "type": "string" }, "script": { "type": "string" } }, "required": [ "script" ] }, "BulkCreateTestsDto": { "type": "object", "properties": { "projectId": { "type": "number" }, "tests": { "type": "array", "items": { "$ref": "#/components/schemas/BulkCreateTestItemDto" } } }, "required": [ "projectId", "tests" ] }, "UpdateTestDto": { "type": "object", "properties": { "name": { "type": "string" }, "description": { "type": "string" }, "status": { "type": "string" }, "framework": { "type": "string" }, "script": { "type": "string" } } }, "CreateLogDto": { "type": "object", "properties": { "testId": { "type": "number" }, "output": { "type": "string" }, "status": { "type": "string" } }, "required": [ "testId", "output", "status" ] }, "UpdateLogDto": { "type": "object", "properties": { "output": { "type": "string" }, "status": { "type": "string" } } }, "CreateSettingDto": { "type": "object", "properties": { "projectId": { "type": "object" }, "key": { "type": "string" }, "value": { "type": "string" } }, "required": [ "key", "value" ] }, "UpdateSettingDto": { "type": "object", "properties": { "key": { "type": "string" }, "value": { "type": "string" } } }, "SystemSettingsDto": { "type": "object", "properties": { "settings": { "items": { "type": "array" }, "type": "array" } }, "required": [ "settings" ] }, "CreateApiEndpointDto": { "type": "object", "properties": { "method": { "type": "string" }, "url": { "type": "string" }, "group": { "type": "string" }, "requirements": { "type": "string", "description": "Requirements or user story for this API endpoint" }, "projectId": { "type": "number" } }, "required": [ "method", "url", "projectId" ] }, "UpdateApiEndpointDto": { "type": "object", "properties": { "method": { "type": "string" }, "url": { "type": "string" }, "group": { "type": "string" }, "requirements": { "type": "string", "description": "Requirements or user story for this API endpoint" } } }, "CreateAiModelDto": { "type": "object", "properties": { "name": { "type": "string" }, "apiKey": { "type": "string" }, "isFallback": { "type": "boolean" } }, "required": [ "name", "apiKey" ] }, "UpdateAiModelDto": { "type": "object", "properties": { "name": { "type": "string" }, "apiKey": { "type": "string" }, "isFallback": { "type": "boolean" } } }, "CreateSavedTestDto": { "type": "object", "properties": { "name": { "type": "string" }, "type": { "type": "string", "enum": [ "ui", "api" ] }, "projectId": { "type": "number" }, "apiDetails": { "type": "object" }, "uiCommands": { "type": "array", "items": { "type": "object" } } }, "required": [ "name", "type" ] }, "UpdateSavedTestDto": { "type": "object", "properties": { "name": { "type": "string" }, "type": { "type": "string", "enum": [ "ui", "api" ] }, "apiDetails": { "type": "object" }, "uiCommands": { "type": "array", "items": { "type": "object" } } } }, "CreateApiCollectionDto": { "type": "object", "properties": { "name": { "type": "string" }, "description": { "type": "string" }, "projectId": { "type": "number" }, "endpoints": { "type": "array", "items": { "type": "number" } } }, "required": [ "name" ] }, "UpdateApiCollectionDto": { "type": "object", "properties": { "name": { "type": "string" }, "description": { "type": "string" }, "projectId": { "type": "number" }, "endpoints": { "type": "array", "items": { "type": "number" } } } }, "AddEndpointsToCollectionDto": { "type": "object", "properties": { "endpointIds": { "type": "array", "items": { "type": "number" } } }, "required": [ "endpointIds" ] }, "ImportOpenApiDto": { "type": "object", "properties": {} }, "ScanUrlDto": { "type": "object", "properties": { "url": { "type": "string" } }, "required": [ "url" ] }, "ScanResultElement": { "type": "object", "properties": { "type": { "type": "string" }, "id": { "type": "string" }, "class": { "type": "string" }, "text": { "type": "string" }, "actionability": { "type": "object" } }, "required": [ "type" ] }, "GenerateTestsDto": { "type": "object", "properties": { "elements": { "type": "array", "items": { "$ref": "#/components/schemas/ScanResultElement" } }, "framework": { "type": "string" }, "requirements": { "type": "string", "description": "Optional requirements/user story to guide test generation" } }, "required": [ "elements" ] } } } }