{ "schemes": [ "http", "https" ], "swagger": "2.0", "info": { "description": "Internal deployment platform API.", "title": "GOS Release API", "contact": {}, "version": "1.0" }, "basePath": "/", "paths": { "/agent-scripts": { "get": { "description": "查询Scripts列表,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "查询Scripts列表", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "post": { "description": "创建Script,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "创建Script", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/agent-scripts/{id}": { "get": { "description": "获取Script详情,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "获取Script详情", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "put": { "description": "更新Script,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "更新Script", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "delete": { "description": "删除Script,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "删除Script", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/agent-tasks": { "get": { "description": "查询All Tasks列表,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "查询All Tasks列表", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "post": { "description": "创建Unassigned Task,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "创建Unassigned Task", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/agent-tasks/{taskID}": { "put": { "description": "更新Temporary Task,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "更新Temporary Task", "parameters": [ { "type": "string", "description": "任务 ID", "name": "taskID", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "delete": { "description": "删除Temporary Task,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "删除Temporary Task", "parameters": [ { "type": "string", "description": "任务 ID", "name": "taskID", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/agent-tasks/{taskID}/execute": { "post": { "description": "执行Standalone Task,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "执行Standalone Task", "parameters": [ { "type": "string", "description": "任务 ID", "name": "taskID", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/agent/heartbeat": { "post": { "description": "处理Heartbeat接口,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "处理Heartbeat接口", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/agent/register": { "post": { "description": "处理Register接口,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "处理Register接口", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/agent/tasks/poll": { "post": { "description": "处理Poll Task接口,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "处理Poll Task接口", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/agent/tasks/{id}/finish": { "post": { "description": "完成Task,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "完成Task", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/agent/tasks/{id}/start": { "post": { "description": "启动Task,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "启动Task", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/agents": { "get": { "description": "查询资源列表,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "查询资源列表", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "post": { "description": "创建资源,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "创建资源", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/agents/bootstrap-config": { "get": { "description": "处理Bootstrap Config接口,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "处理Bootstrap Config接口", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/agents/bootstrap-token/reset": { "post": { "description": "重置Bootstrap Token,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "重置Bootstrap Token", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/agents/{id}": { "get": { "description": "获取资源详情,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "获取资源详情", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "put": { "description": "更新资源,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "更新资源", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "delete": { "description": "删除资源,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "删除资源", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/agents/{id}/config": { "get": { "description": "处理Config接口,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "处理Config接口", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/agents/{id}/disable": { "post": { "description": "处理Disable接口,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "处理Disable接口", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/agents/{id}/enable": { "post": { "description": "处理Enable接口,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "处理Enable接口", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/agents/{id}/maintenance": { "post": { "description": "处理Maintenance接口,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "处理Maintenance接口", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/agents/{id}/reset-token": { "post": { "description": "重置Token,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "重置Token", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/agents/{id}/tasks": { "get": { "description": "查询Tasks列表,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "查询Tasks列表", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "post": { "description": "创建Task,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "创建Task", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/agents/{id}/tasks/{taskID}": { "put": { "description": "更新Task,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "更新Task", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "任务 ID", "name": "taskID", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "delete": { "description": "删除Task,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "删除Task", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "任务 ID", "name": "taskID", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/agents/{id}/tasks/{taskID}/execute": { "post": { "description": "执行Task,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "执行Task", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "任务 ID", "name": "taskID", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/agents/{id}/tasks/{taskID}/resume": { "post": { "description": "恢复Task,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "恢复Task", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "任务 ID", "name": "taskID", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/agents/{id}/tasks/{taskID}/stop": { "post": { "description": "停止Task,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "停止Task", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "任务 ID", "name": "taskID", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/app-release-states/summaries": { "get": { "description": "查询App Release State Summaries列表,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "查询App Release State Summaries列表", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/applications": { "get": { "produces": [ "application/json" ], "tags": [ "applications" ], "summary": "List applications", "parameters": [ { "type": "string", "description": "Application keyword (name or key)", "name": "keyword", "in": "query" }, { "type": "string", "description": "Application key", "name": "key", "in": "query" }, { "type": "string", "description": "Application name", "name": "name", "in": "query" }, { "type": "string", "description": "Project ID", "name": "project_id", "in": "query" }, { "type": "string", "description": "Application status", "name": "status", "in": "query" }, { "type": "integer", "description": "Page number, starts from 1", "name": "page", "in": "query" }, { "type": "integer", "description": "Page size, max 100", "name": "page_size", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.ApplicationListResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "applications" ], "summary": "Create application", "parameters": [ { "description": "Create application request", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/internal_interfaces_http.CreateApplicationRequest" } } ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/internal_interfaces_http.ApplicationDataResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/applications/options": { "get": { "description": "查询Options列表,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "applications" ], "summary": "查询Options列表", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/applications/{id}": { "get": { "produces": [ "application/json" ], "tags": [ "applications" ], "summary": "Get application by ID", "parameters": [ { "type": "string", "description": "Application ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.ApplicationDataResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "put": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "applications" ], "summary": "Update application", "parameters": [ { "type": "string", "description": "Application ID", "name": "id", "in": "path", "required": true }, { "description": "Update application request", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/internal_interfaces_http.UpdateApplicationRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.ApplicationDataResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "delete": { "produces": [ "application/json" ], "tags": [ "applications" ], "summary": "Delete application", "parameters": [ { "type": "string", "description": "Application ID", "name": "id", "in": "path", "required": true } ], "responses": { "204": { "description": "No Content", "schema": { "type": "string" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/applications/{id}/executor-param-defs": { "get": { "produces": [ "application/json" ], "tags": [ "executor-param-defs" ], "summary": "List bound executor param definitions by application", "parameters": [ { "type": "string", "description": "Application ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Binding type, default ci", "name": "binding_type", "in": "query" }, { "type": "boolean", "description": "Visible flag", "name": "visible", "in": "query" }, { "type": "boolean", "description": "Editable flag", "name": "editable", "in": "query" }, { "type": "string", "description": "Mapped platform param key", "name": "param_key", "in": "query" }, { "type": "integer", "description": "Page number", "name": "page", "in": "query" }, { "type": "integer", "description": "Page size", "name": "page_size", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.ExecutorParamDefListResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/applications/{id}/pipeline-bindings": { "get": { "produces": [ "application/json" ], "tags": [ "pipeline-bindings" ], "summary": "List pipeline bindings for application", "parameters": [ { "type": "string", "description": "Application ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Binding type: ci/cd", "name": "binding_type", "in": "query" }, { "type": "string", "description": "Provider: jenkins/argocd", "name": "provider", "in": "query" }, { "type": "string", "description": "Binding status", "name": "status", "in": "query" }, { "type": "integer", "description": "Page number", "name": "page", "in": "query" }, { "type": "integer", "description": "Page size", "name": "page_size", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.PipelineBindingListResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "pipeline-bindings" ], "summary": "Create pipeline binding for application", "parameters": [ { "type": "string", "description": "Application ID", "name": "id", "in": "path", "required": true }, { "description": "Create binding request", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/internal_interfaces_http.CreateBindingRequest" } } ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/internal_interfaces_http.PipelineBindingDataResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/applications/{id}/release-orders/rollback": { "post": { "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "Create rollback release order by application", "parameters": [ { "type": "string", "description": "Application ID", "name": "id", "in": "path", "required": true } ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/internal_interfaces_http.ReleaseOrderDataResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/applications/{id}/rollback-capability": { "post": { "description": "获取Application Rollback Capability详情,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "获取Application Rollback Capability详情", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/applications/{id}/rollback-orders": { "post": { "description": "创建Application Rollback Order,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "创建Application Rollback Order", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/applications/{id}/rollback-precheck": { "post": { "description": "获取Application Rollback Precheck详情,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "获取Application Rollback Precheck详情", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/argocd/applications": { "get": { "description": "查询Applications列表,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "argocd" ], "summary": "查询Applications列表", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/argocd/applications/sync": { "post": { "description": "同步Applications,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "argocd" ], "summary": "同步Applications", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/argocd/applications/{id}": { "get": { "description": "获取Application By ID详情,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "argocd" ], "summary": "获取Application By ID详情", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/argocd/applications/{id}/original-link": { "get": { "description": "获取Original Link详情,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "argocd" ], "summary": "获取Original Link详情", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/argocd/env-bindings": { "get": { "description": "查询Env Bindings列表,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "argocd" ], "summary": "查询Env Bindings列表", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "put": { "description": "更新Env Bindings,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "argocd" ], "summary": "更新Env Bindings", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/argocd/instances": { "get": { "description": "查询Instances列表,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "argocd" ], "summary": "查询Instances列表", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "post": { "description": "创建Instance,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "argocd" ], "summary": "创建Instance", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/argocd/instances/{id}": { "put": { "description": "更新Instance,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "argocd" ], "summary": "更新Instance", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/argocd/instances/{id}/check": { "post": { "description": "检查Instance,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "argocd" ], "summary": "检查Instance", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/auth/login": { "post": { "description": "登录系统,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "auth" ], "summary": "登录系统", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/auth/logout": { "post": { "description": "退出登录,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "auth" ], "summary": "退出登录", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/executor-param-defs": { "get": { "produces": [ "application/json" ], "tags": [ "executor-param-defs" ], "summary": "List executor param definitions across applications", "parameters": [ { "type": "string", "description": "Application ID", "name": "application_id", "in": "query" }, { "type": "string", "description": "Application name, application key, or platform key", "name": "keyword", "in": "query" }, { "type": "string", "description": "Binding type, default ci", "name": "binding_type", "in": "query" }, { "type": "boolean", "description": "Visible flag", "name": "visible", "in": "query" }, { "type": "boolean", "description": "Editable flag", "name": "editable", "in": "query" }, { "type": "string", "description": "Status", "name": "status", "in": "query" }, { "type": "integer", "description": "Page number", "name": "page", "in": "query" }, { "type": "integer", "description": "Page size", "name": "page_size", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.ExecutorParamDefListResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/executor-param-defs/{id}": { "get": { "produces": [ "application/json" ], "tags": [ "executor-param-defs" ], "summary": "Get executor param definition by ID", "parameters": [ { "type": "string", "description": "Executor param definition ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.ExecutorParamDefDataResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "put": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "executor-param-defs" ], "summary": "Update executor param definition mapping", "parameters": [ { "type": "string", "description": "Executor param definition ID", "name": "id", "in": "path", "required": true }, { "description": "Update executor param definition request", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/internal_interfaces_http.UpdateExecutorParamDefRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.ExecutorParamDefDataResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/gitops/field-candidates": { "get": { "produces": [ "application/json" ], "tags": [ "gitops" ], "summary": "List GitOps YAML field candidates", "parameters": [ { "type": "string", "description": "application id", "name": "application_id", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GitOpsFieldCandidatesResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/gitops/instances": { "get": { "description": "查询Instances列表,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "gitops" ], "summary": "查询Instances列表", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "post": { "description": "创建Instance,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "gitops" ], "summary": "创建Instance", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/gitops/instances/{id}": { "put": { "description": "更新Instance,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "gitops" ], "summary": "更新Instance", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/gitops/instances/{id}/status": { "get": { "description": "获取Instance Status详情,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "gitops" ], "summary": "获取Instance Status详情", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/gitops/scan-path-status": { "get": { "description": "检查Scan Path,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "gitops" ], "summary": "检查Scan Path", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/gitops/template-fields": { "get": { "produces": [ "application/json" ], "tags": [ "gitops" ], "summary": "List GitOps commit template fields", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GitOpsTemplateFieldsResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/gitops/values-candidates": { "get": { "produces": [ "application/json" ], "tags": [ "gitops" ], "summary": "List GitOps Helm values candidates", "parameters": [ { "type": "string", "description": "application id", "name": "application_id", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GitOpsValuesCandidatesResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/jenkins/executor-param-defs/sync": { "post": { "produces": [ "application/json" ], "tags": [ "executor-param-defs" ], "summary": "Sync executor param definitions from Jenkins", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.SyncExecutorParamDefsResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/jenkins/pipelines/raw": { "post": { "description": "创建Raw Pipeline,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "pipelines" ], "summary": "创建Raw Pipeline", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/jenkins/pipelines/raw/preview-config-xml": { "post": { "description": "处理Preview Raw Pipeline Config XML接口,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "pipelines" ], "summary": "处理Preview Raw Pipeline Config XML接口", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/jenkins/pipelines/sync": { "post": { "produces": [ "application/json" ], "tags": [ "pipelines" ], "summary": "Sync pipelines from Jenkins", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.SyncPipelinesResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/me": { "get": { "description": "获取当前用户信息,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "auth" ], "summary": "获取当前用户信息", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/notification-hooks": { "get": { "description": "查询Hooks列表,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "notifications" ], "summary": "查询Hooks列表", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "post": { "description": "创建Hook,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "notifications" ], "summary": "创建Hook", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/notification-hooks/{id}": { "get": { "description": "获取Hook详情,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "notifications" ], "summary": "获取Hook详情", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "put": { "description": "更新Hook,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "notifications" ], "summary": "更新Hook", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "delete": { "description": "删除Hook,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "notifications" ], "summary": "删除Hook", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/notification-markdown-templates": { "get": { "description": "查询Markdown Templates列表,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "notifications" ], "summary": "查询Markdown Templates列表", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "post": { "description": "创建Markdown Template,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "notifications" ], "summary": "创建Markdown Template", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/notification-markdown-templates/{id}": { "get": { "description": "获取Markdown Template详情,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "notifications" ], "summary": "获取Markdown Template详情", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "put": { "description": "更新Markdown Template,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "notifications" ], "summary": "更新Markdown Template", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "delete": { "description": "删除Markdown Template,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "notifications" ], "summary": "删除Markdown Template", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/notification-sources": { "get": { "description": "查询Sources列表,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "notifications" ], "summary": "查询Sources列表", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "post": { "description": "创建Source,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "notifications" ], "summary": "创建Source", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/notification-sources/{id}": { "get": { "description": "获取Source详情,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "notifications" ], "summary": "获取Source详情", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "put": { "description": "更新Source,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "notifications" ], "summary": "更新Source", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "delete": { "description": "删除Source,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "notifications" ], "summary": "删除Source", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/permissions": { "get": { "description": "查询Permissions列表,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "users" ], "summary": "查询Permissions列表", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/pipeline-bindings/{id}": { "get": { "produces": [ "application/json" ], "tags": [ "pipeline-bindings" ], "summary": "Get pipeline binding by ID", "parameters": [ { "type": "string", "description": "Binding ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.PipelineBindingDataResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "put": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "pipeline-bindings" ], "summary": "Update pipeline binding", "parameters": [ { "type": "string", "description": "Binding ID", "name": "id", "in": "path", "required": true }, { "description": "Update binding request", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/internal_interfaces_http.UpdateBindingRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.PipelineBindingDataResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "delete": { "produces": [ "application/json" ], "tags": [ "pipeline-bindings" ], "summary": "Delete pipeline binding", "parameters": [ { "type": "string", "description": "Binding ID", "name": "id", "in": "path", "required": true } ], "responses": { "204": { "description": "No Content", "schema": { "type": "string" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/pipelines": { "get": { "produces": [ "application/json" ], "tags": [ "pipelines" ], "summary": "List pipelines", "parameters": [ { "type": "string", "description": "Pipeline name", "name": "name", "in": "query" }, { "type": "string", "description": "Provider, default jenkins", "name": "provider", "in": "query" }, { "type": "string", "description": "Pipeline status", "name": "status", "in": "query" }, { "type": "integer", "description": "Page number", "name": "page", "in": "query" }, { "type": "integer", "description": "Page size", "name": "page_size", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.PipelineListResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/pipelines/{id}": { "get": { "produces": [ "application/json" ], "tags": [ "pipelines" ], "summary": "Get pipeline by ID", "parameters": [ { "type": "string", "description": "Pipeline ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.PipelineDataResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/pipelines/{id}/config-xml": { "get": { "description": "获取Pipeline Config XML详情,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "pipelines" ], "summary": "获取Pipeline Config XML详情", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/pipelines/{id}/original-link": { "get": { "description": "获取Pipeline Original Link详情,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "pipelines" ], "summary": "获取Pipeline Original Link详情", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/pipelines/{id}/param-defs": { "get": { "produces": [ "application/json" ], "tags": [ "executor-param-defs" ], "summary": "List executor param definitions", "parameters": [ { "type": "string", "description": "Pipeline ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Executor type", "name": "executor_type", "in": "query" }, { "type": "boolean", "description": "Visible flag", "name": "visible", "in": "query" }, { "type": "boolean", "description": "Editable flag", "name": "editable", "in": "query" }, { "type": "string", "description": "Mapped platform param key", "name": "param_key", "in": "query" }, { "type": "integer", "description": "Page number", "name": "page", "in": "query" }, { "type": "integer", "description": "Page size", "name": "page_size", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.ExecutorParamDefListResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/pipelines/{id}/raw": { "put": { "description": "更新Raw Pipeline,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "pipelines" ], "summary": "更新Raw Pipeline", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "delete": { "description": "删除Raw Pipeline,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "pipelines" ], "summary": "删除Raw Pipeline", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/pipelines/{id}/raw-script": { "get": { "produces": [ "application/json" ], "tags": [ "pipelines" ], "summary": "Get Jenkins pipeline raw script", "parameters": [ { "type": "string", "description": "Pipeline ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.PipelineRawScriptDataResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/pipelines/{id}/verify": { "post": { "produces": [ "application/json" ], "tags": [ "pipelines" ], "summary": "Verify Jenkins pipeline availability", "parameters": [ { "type": "string", "description": "Pipeline ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.VerifyPipelineResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/platform-param-dicts": { "get": { "produces": [ "application/json" ], "tags": [ "platform-param-dicts" ], "summary": "List platform param dicts", "parameters": [ { "type": "string", "description": "Platform param key", "name": "param_key", "in": "query" }, { "type": "string", "description": "Platform param name", "name": "name", "in": "query" }, { "type": "integer", "description": "Status: 1 enabled, 0 disabled", "name": "status", "in": "query" }, { "type": "boolean", "description": "Builtin flag", "name": "builtin", "in": "query" }, { "type": "integer", "description": "Page number", "name": "page", "in": "query" }, { "type": "integer", "description": "Page size", "name": "page_size", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.PlatformParamDictListResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "platform-param-dicts" ], "summary": "Create platform param dict", "parameters": [ { "description": "Create platform param dict request", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/internal_interfaces_http.CreatePlatformParamDictRequest" } } ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/internal_interfaces_http.PlatformParamDictDataResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/platform-param-dicts/{id}": { "get": { "produces": [ "application/json" ], "tags": [ "platform-param-dicts" ], "summary": "Get platform param dict by ID", "parameters": [ { "type": "string", "description": "Platform param dict ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.PlatformParamDictDataResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "put": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "platform-param-dicts" ], "summary": "Update platform param dict", "parameters": [ { "type": "string", "description": "Platform param dict ID", "name": "id", "in": "path", "required": true }, { "description": "Update platform param dict request", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/internal_interfaces_http.UpdatePlatformParamDictRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.PlatformParamDictDataResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "delete": { "produces": [ "application/json" ], "tags": [ "platform-param-dicts" ], "summary": "Delete platform param dict", "parameters": [ { "type": "string", "description": "Platform param dict ID", "name": "id", "in": "path", "required": true } ], "responses": { "204": { "description": "No Content", "schema": { "type": "string" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/projects": { "get": { "description": "查询资源列表,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "projects" ], "summary": "查询资源列表", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "post": { "description": "创建资源,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "projects" ], "summary": "创建资源", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/projects/{id}": { "get": { "description": "获取By ID详情,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "projects" ], "summary": "获取By ID详情", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "put": { "description": "更新资源,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "projects" ], "summary": "更新资源", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "delete": { "description": "删除资源,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "projects" ], "summary": "删除资源", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/release-approval-records": { "get": { "description": "查询Approval Record Summaries列表,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "查询Approval Record Summaries列表", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/release-orders": { "get": { "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "List release orders", "parameters": [ { "type": "string", "description": "Application ID", "name": "application_id", "in": "query" }, { "type": "string", "description": "Order keyword", "name": "keyword", "in": "query" }, { "type": "string", "description": "Triggered by", "name": "triggered_by", "in": "query" }, { "type": "string", "description": "Environment code", "name": "env_code", "in": "query" }, { "type": "string", "description": "Operation type", "name": "operation_type", "in": "query" }, { "type": "string", "description": "Release status", "name": "status", "in": "query" }, { "type": "string", "description": "Trigger type", "name": "trigger_type", "in": "query" }, { "type": "string", "description": "Created at from (RFC3339)", "name": "created_at_from", "in": "query" }, { "type": "string", "description": "Created at to (RFC3339)", "name": "created_at_to", "in": "query" }, { "type": "integer", "description": "Page number", "name": "page", "in": "query" }, { "type": "integer", "description": "Page size", "name": "page_size", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.ReleaseOrderListResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "Create release order", "parameters": [ { "description": "Create release order request", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/internal_interfaces_http.CreateReleaseOrderRequest" } } ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/internal_interfaces_http.ReleaseOrderDataResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/release-orders/batch-delete": { "post": { "description": "批量处理Delete,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "批量处理Delete", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/release-orders/batch-execute": { "post": { "description": "批量处理Execute,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "批量处理Execute", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/release-orders/stats": { "get": { "description": "处理Stats接口,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "处理Stats接口", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/release-orders/{id}": { "get": { "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "Get release order by ID", "parameters": [ { "type": "string", "description": "Release order ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.ReleaseOrderDataResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "put": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "Update editable release order", "parameters": [ { "type": "string", "description": "Release order id", "name": "id", "in": "path", "required": true }, { "description": "Update release order request", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/internal_interfaces_http.CreateReleaseOrderRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.ReleaseOrderDataResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "delete": { "description": "删除资源,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "删除资源", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/release-orders/{id}/approval-records": { "get": { "description": "查询Approval Records列表,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "查询Approval Records列表", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/release-orders/{id}/approve": { "post": { "description": "审批通过发布单,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "审批通过发布单", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/release-orders/{id}/build": { "post": { "description": "处理Build接口,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "处理Build接口", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/release-orders/{id}/cancel": { "post": { "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "Cancel release order", "parameters": [ { "type": "string", "description": "Release order ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.ReleaseOrderDataResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/release-orders/{id}/concurrent-batch-progress": { "get": { "description": "获取Concurrent Batch Progress详情,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "获取Concurrent Batch Progress详情", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/release-orders/{id}/confirm-live": { "post": { "description": "处理Confirm Live接口,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "处理Confirm Live接口", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/release-orders/{id}/deploy": { "post": { "description": "处理Deploy接口,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "处理Deploy接口", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/release-orders/{id}/execute": { "post": { "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "Execute release order", "parameters": [ { "type": "string", "description": "Release order ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.ReleaseOrderDataResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/release-orders/{id}/executions": { "get": { "description": "查询Executions列表,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "查询Executions列表", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/release-orders/{id}/logs/stream": { "get": { "produces": [ "text/event-stream" ], "tags": [ "release-orders" ], "summary": "Stream release order logs", "parameters": [ { "type": "string", "description": "Release order ID", "name": "id", "in": "path", "required": true }, { "type": "integer", "description": "Start offset for progressive logs", "name": "start", "in": "query" } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/release-orders/{id}/params": { "get": { "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "List release order params", "parameters": [ { "type": "string", "description": "Release order ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.ReleaseOrderParamListResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/release-orders/{id}/pipeline-stages": { "get": { "description": "查询发布单 CI/CD 流水线阶段状态,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "查询发布单流水线阶段列表", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.ReleaseOrderPipelineStageListResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/release-orders/{id}/pipeline-stages/{stage_id}/log": { "get": { "description": "获取指定发布单阶段的构建日志内容,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "获取发布单流水线阶段日志", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "阶段 ID", "name": "stage_id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.ReleaseOrderPipelineStageLogResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/release-orders/{id}/precheck": { "get": { "description": "获取Precheck详情,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "获取Precheck详情", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/release-orders/{id}/reject": { "post": { "description": "驳回发布单,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "驳回发布单", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/release-orders/{id}/replay": { "post": { "description": "创建Replay By Order,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "创建Replay By Order", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/release-orders/{id}/rollback": { "post": { "description": "创建Rollback By Order,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "创建Rollback By Order", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/release-orders/{id}/steps": { "get": { "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "List release order steps", "parameters": [ { "type": "string", "description": "Release order ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.ReleaseOrderStepListResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/release-orders/{id}/steps/{step_code}/finish": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "Finish release order step", "parameters": [ { "type": "string", "description": "Release order ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Step code", "name": "step_code", "in": "path", "required": true }, { "description": "Finish step request", "name": "request", "in": "body", "schema": { "$ref": "#/definitions/internal_interfaces_http.FinishReleaseOrderStepRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.ReleaseOrderStepActionResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/release-orders/{id}/steps/{step_code}/start": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "Start release order step", "parameters": [ { "type": "string", "description": "Release order ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Step code", "name": "step_code", "in": "path", "required": true }, { "description": "Start step request", "name": "request", "in": "body", "schema": { "$ref": "#/definitions/internal_interfaces_http.StartReleaseOrderStepRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.ReleaseOrderStepActionResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/release-orders/{id}/submit-approval": { "post": { "description": "处理Submit Approval接口,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "处理Submit Approval接口", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/release-orders/{id}/value-progress": { "get": { "produces": [ "application/json" ], "tags": [ "release-orders" ], "summary": "List release order value progress", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.ReleaseOrderValueProgressListResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/release-templates": { "get": { "description": "查询资源列表,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "release-templates" ], "summary": "查询资源列表", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "post": { "description": "创建资源,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "release-templates" ], "summary": "创建资源", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/release-templates/{id}": { "get": { "description": "获取By ID详情,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "release-templates" ], "summary": "获取By ID详情", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "put": { "description": "更新资源,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "release-templates" ], "summary": "更新资源", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "delete": { "description": "删除资源,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "release-templates" ], "summary": "删除资源", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/resident-tasks/{taskID}": { "put": { "description": "更新Resident Task,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "更新Resident Task", "parameters": [ { "type": "string", "description": "任务 ID", "name": "taskID", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "delete": { "description": "删除Resident Task,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "agents" ], "summary": "删除Resident Task", "parameters": [ { "type": "string", "description": "任务 ID", "name": "taskID", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/system/settings/release": { "get": { "description": "获取Release Settings详情,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "system-settings" ], "summary": "获取Release Settings详情", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "put": { "description": "更新Release Settings,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "system-settings" ], "summary": "更新Release Settings", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/users": { "get": { "description": "查询Users列表,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "users" ], "summary": "查询Users列表", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "post": { "description": "创建User,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "users" ], "summary": "创建User", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/users/options": { "get": { "description": "查询User Options列表,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "users" ], "summary": "查询User Options列表", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/users/{id}": { "get": { "description": "获取User By ID详情,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "users" ], "summary": "获取User By ID详情", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "put": { "description": "更新User,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "users" ], "summary": "更新User", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "delete": { "description": "删除User,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "users" ], "summary": "删除User", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/users/{id}/param-permissions": { "get": { "description": "查询User Param Permissions列表,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "users" ], "summary": "查询User Param Permissions列表", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "post": { "description": "处理Upsert User Param Permission接口,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "users" ], "summary": "处理Upsert User Param Permission接口", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/users/{id}/param-permissions/{permission_id}": { "put": { "description": "处理Upsert User Param Permission接口,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "users" ], "summary": "处理Upsert User Param Permission接口", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "参数权限 ID", "name": "permission_id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "delete": { "description": "删除User Param Permission,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "users" ], "summary": "删除User Param Permission", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "参数权限 ID", "name": "permission_id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } }, "/users/{id}/permissions": { "get": { "description": "查询User Permissions列表,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "users" ], "summary": "查询User Permissions列表", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "post": { "description": "处理Grant User Permissions接口,并按统一响应结构返回处理结果。", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "users" ], "summary": "处理Grant User Permissions接口", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } }, "delete": { "description": "处理Revoke User Permissions接口,并按统一响应结构返回处理结果。", "produces": [ "application/json" ], "tags": [ "users" ], "summary": "处理Revoke User Permissions接口", "parameters": [ { "type": "string", "description": "资源 ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/internal_interfaces_http.GenericResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/internal_interfaces_http.ErrorResponse" } } } } } }, "definitions": { "gos_internal_application_usecase.QueryGitOpsFieldCandidateOutput": { "type": "object", "properties": { "display_name": { "type": "string" }, "document_kind": { "type": "string" }, "document_name": { "type": "string" }, "file_path_template": { "type": "string" }, "sample_value": { "type": "string" }, "target_path": { "type": "string" }, "value_type": { "type": "string" } } }, "gos_internal_application_usecase.QueryGitOpsTemplateFieldOutput": { "type": "object", "properties": { "builtin": { "type": "boolean" }, "description": { "type": "string" }, "name": { "type": "string" }, "param_key": { "type": "string" }, "required": { "type": "boolean" } } }, "gos_internal_application_usecase.QueryGitOpsValuesCandidateOutput": { "type": "object", "properties": { "display_name": { "type": "string" }, "file_path_template": { "type": "string" }, "sample_value": { "type": "string" }, "target_path": { "type": "string" }, "value_type": { "type": "string" } } }, "gos_internal_application_usecase.SyncExecutorParamDefsOutput": { "type": "object", "properties": { "created": { "type": "integer" }, "inactivated": { "type": "integer" }, "skipped": { "type": "integer" }, "total": { "type": "integer" }, "updated": { "type": "integer" } } }, "gos_internal_application_usecase.SyncPipelinesOutput": { "type": "object", "properties": { "created": { "type": "integer" }, "inactivated": { "type": "integer" }, "skipped": { "type": "integer" }, "total": { "type": "integer" }, "updated": { "type": "integer" } } }, "gos_internal_domain_application.GitOpsBranchMapping": { "type": "object", "properties": { "branch": { "type": "string" }, "env_code": { "type": "string" } } }, "gos_internal_domain_application.ReleaseBranchOption": { "type": "object", "properties": { "branch": { "type": "string" }, "name": { "type": "string" } } }, "internal_interfaces_http.ApplicationDataResponse": { "type": "object", "properties": { "data": { "$ref": "#/definitions/internal_interfaces_http.ApplicationResponse" } } }, "internal_interfaces_http.ApplicationListResponse": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/internal_interfaces_http.ApplicationResponse" } }, "page": { "type": "integer" }, "page_size": { "type": "integer" }, "total": { "type": "integer" } } }, "internal_interfaces_http.ApplicationResponse": { "type": "object", "properties": { "artifact_type": { "type": "string" }, "created_at": { "type": "string" }, "description": { "type": "string" }, "gitops_branch_mappings": { "type": "array", "items": { "$ref": "#/definitions/gos_internal_domain_application.GitOpsBranchMapping" } }, "id": { "type": "string" }, "key": { "type": "string" }, "language": { "type": "string" }, "name": { "type": "string" }, "owner": { "type": "string" }, "owner_user_id": { "type": "string" }, "project_id": { "type": "string" }, "project_key": { "type": "string" }, "project_name": { "type": "string" }, "release_branches": { "type": "array", "items": { "$ref": "#/definitions/gos_internal_domain_application.ReleaseBranchOption" } }, "repo_url": { "type": "string" }, "status": { "type": "string" }, "updated_at": { "type": "string" } } }, "internal_interfaces_http.CreateApplicationRequest": { "type": "object", "properties": { "artifact_type": { "type": "string" }, "description": { "type": "string" }, "gitops_branch_mappings": { "type": "array", "items": { "$ref": "#/definitions/gos_internal_domain_application.GitOpsBranchMapping" } }, "key": { "type": "string" }, "language": { "type": "string" }, "name": { "type": "string" }, "owner": { "type": "string" }, "owner_user_id": { "type": "string" }, "project_id": { "type": "string" }, "release_branches": { "type": "array", "items": { "$ref": "#/definitions/gos_internal_domain_application.ReleaseBranchOption" } }, "repo_url": { "type": "string" }, "status": { "type": "string" } } }, "internal_interfaces_http.CreateBindingRequest": { "type": "object", "properties": { "binding_type": { "type": "string" }, "external_ref": { "type": "string" }, "pipeline_id": { "type": "string" }, "provider": { "type": "string" }, "status": { "type": "string" }, "trigger_mode": { "type": "string" } } }, "internal_interfaces_http.CreatePlatformParamDictRequest": { "type": "object", "properties": { "cd_self_fill": { "type": "boolean" }, "description": { "type": "string" }, "gitops_locator": { "type": "boolean" }, "name": { "type": "string" }, "param_key": { "type": "string" }, "param_type": { "type": "string" }, "required": { "type": "boolean" }, "status": { "type": "integer" } } }, "internal_interfaces_http.CreateReleaseOrderParamRequest": { "type": "object", "properties": { "executor_param_name": { "type": "string" }, "param_key": { "type": "string" }, "param_value": { "type": "string" }, "pipeline_scope": { "type": "string" }, "value_source": { "type": "string" } } }, "internal_interfaces_http.CreateReleaseOrderRequest": { "type": "object", "properties": { "application_id": { "type": "string" }, "env_code": { "type": "string" }, "git_ref": { "type": "string" }, "image_tag": { "type": "string" }, "params": { "type": "array", "items": { "$ref": "#/definitions/internal_interfaces_http.CreateReleaseOrderParamRequest" } }, "project_name": { "type": "string" }, "remark": { "type": "string" }, "steps": { "type": "array", "items": { "$ref": "#/definitions/internal_interfaces_http.CreateReleaseOrderStepRequest" } }, "template_id": { "type": "string" }, "trigger_type": { "type": "string" }, "triggered_by": { "type": "string" } } }, "internal_interfaces_http.CreateReleaseOrderStepRequest": { "type": "object", "properties": { "sort_no": { "type": "integer" }, "step_code": { "type": "string" }, "step_name": { "type": "string" } } }, "internal_interfaces_http.ErrorResponse": { "type": "object", "properties": { "error": { "type": "string" } } }, "internal_interfaces_http.ExecutorParamDefDataResponse": { "type": "object", "properties": { "data": { "$ref": "#/definitions/internal_interfaces_http.ExecutorParamDefResponse" } } }, "internal_interfaces_http.ExecutorParamDefListResponse": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/internal_interfaces_http.ExecutorParamDefResponse" } }, "page": { "type": "integer" }, "page_size": { "type": "integer" }, "total": { "type": "integer" } } }, "internal_interfaces_http.ExecutorParamDefResponse": { "type": "object", "properties": { "application_id": { "type": "string" }, "application_key": { "type": "string" }, "application_name": { "type": "string" }, "binding_type": { "type": "string" }, "can_edit": { "type": "boolean" }, "can_view": { "type": "boolean" }, "created_at": { "type": "string" }, "default_value": { "type": "string" }, "description": { "type": "string" }, "editable": { "type": "boolean" }, "executor_param_name": { "type": "string" }, "executor_type": { "type": "string" }, "id": { "type": "string" }, "param_key": { "type": "string" }, "param_type": { "type": "string" }, "pipeline_id": { "type": "string" }, "pipeline_name": { "type": "string" }, "raw_meta": { "type": "string" }, "required": { "type": "boolean" }, "single_select": { "type": "boolean" }, "sort_no": { "type": "integer" }, "source_from": { "type": "string" }, "status": { "type": "string" }, "updated_at": { "type": "string" }, "visible": { "type": "boolean" } } }, "internal_interfaces_http.FinishReleaseOrderStepRequest": { "type": "object", "properties": { "message": { "type": "string" }, "status": { "type": "string" } } }, "internal_interfaces_http.GenericResponse": { "type": "object", "properties": { "data": { "type": "object", "additionalProperties": true } } }, "internal_interfaces_http.GitOpsFieldCandidatesResponse": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/gos_internal_application_usecase.QueryGitOpsFieldCandidateOutput" } } } }, "internal_interfaces_http.GitOpsTemplateFieldsResponse": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/gos_internal_application_usecase.QueryGitOpsTemplateFieldOutput" } } } }, "internal_interfaces_http.GitOpsValuesCandidatesResponse": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/gos_internal_application_usecase.QueryGitOpsValuesCandidateOutput" } } } }, "internal_interfaces_http.PipelineBindingDataResponse": { "type": "object", "properties": { "data": { "$ref": "#/definitions/internal_interfaces_http.PipelineBindingResponse" } } }, "internal_interfaces_http.PipelineBindingListResponse": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/internal_interfaces_http.PipelineBindingResponse" } }, "page": { "type": "integer" }, "page_size": { "type": "integer" }, "total": { "type": "integer" } } }, "internal_interfaces_http.PipelineBindingResponse": { "type": "object", "properties": { "application_id": { "type": "string" }, "application_name": { "type": "string" }, "binding_type": { "type": "string" }, "created_at": { "type": "string" }, "external_ref": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "pipeline_id": { "type": "string" }, "provider": { "type": "string" }, "status": { "type": "string" }, "trigger_mode": { "type": "string" }, "updated_at": { "type": "string" } } }, "internal_interfaces_http.PipelineDataResponse": { "type": "object", "properties": { "data": { "$ref": "#/definitions/internal_interfaces_http.PipelineResponse" } } }, "internal_interfaces_http.PipelineListResponse": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/internal_interfaces_http.PipelineResponse" } }, "page": { "type": "integer" }, "page_size": { "type": "integer" }, "total": { "type": "integer" } } }, "internal_interfaces_http.PipelineRawScriptDataResponse": { "type": "object", "properties": { "data": { "type": "object", "properties": { "definition_class": { "type": "string" }, "description": { "type": "string" }, "from_scm": { "type": "boolean" }, "pipeline": { "$ref": "#/definitions/internal_interfaces_http.PipelineResponse" }, "sandbox": { "type": "boolean" }, "script": { "type": "string" }, "script_path": { "type": "string" } } } } }, "internal_interfaces_http.PipelineResponse": { "type": "object", "properties": { "created_at": { "type": "string" }, "credential_ref": { "type": "string" }, "default_branch": { "type": "string" }, "description": { "type": "string" }, "id": { "type": "string" }, "job_full_name": { "type": "string" }, "job_name": { "type": "string" }, "job_url": { "type": "string" }, "last_synced_at": { "type": "string" }, "last_verified_at": { "type": "string" }, "provider": { "type": "string" }, "status": { "type": "string" }, "updated_at": { "type": "string" } } }, "internal_interfaces_http.PlatformParamDictDataResponse": { "type": "object", "properties": { "data": { "$ref": "#/definitions/internal_interfaces_http.PlatformParamDictResponse" } } }, "internal_interfaces_http.PlatformParamDictListResponse": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/internal_interfaces_http.PlatformParamDictResponse" } }, "page": { "type": "integer" }, "page_size": { "type": "integer" }, "total": { "type": "integer" } } }, "internal_interfaces_http.PlatformParamDictResponse": { "type": "object", "properties": { "builtin": { "type": "boolean" }, "cd_self_fill": { "type": "boolean" }, "created_at": { "type": "string" }, "description": { "type": "string" }, "gitops_locator": { "type": "boolean" }, "id": { "type": "string" }, "name": { "type": "string" }, "param_key": { "type": "string" }, "param_type": { "type": "string" }, "required": { "type": "boolean" }, "status": { "type": "integer" }, "updated_at": { "type": "string" } } }, "internal_interfaces_http.ReleaseOrderDataResponse": { "type": "object", "properties": { "data": { "$ref": "#/definitions/internal_interfaces_http.ReleaseOrderResponse" } } }, "internal_interfaces_http.ReleaseOrderListResponse": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/internal_interfaces_http.ReleaseOrderResponse" } }, "page": { "type": "integer" }, "page_size": { "type": "integer" }, "total": { "type": "integer" } } }, "internal_interfaces_http.ReleaseOrderParamListResponse": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/internal_interfaces_http.ReleaseOrderParamResponse" } } } }, "internal_interfaces_http.ReleaseOrderParamResponse": { "type": "object", "properties": { "binding_id": { "type": "string" }, "created_at": { "type": "string" }, "executor_param_name": { "type": "string" }, "id": { "type": "string" }, "param_key": { "type": "string" }, "param_value": { "type": "string" }, "pipeline_scope": { "type": "string" }, "release_order_id": { "type": "string" }, "value_source": { "type": "string" } } }, "internal_interfaces_http.ReleaseOrderPipelineStageListResponse": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/internal_interfaces_http.ReleaseOrderPipelineStageResponse" } }, "executor_type": { "type": "string" }, "message": { "type": "string" }, "show_module": { "type": "boolean" } } }, "internal_interfaces_http.ReleaseOrderPipelineStageLogResponse": { "type": "object", "properties": { "data": { "type": "object", "properties": { "content": { "type": "string" }, "fetched_at": { "type": "string" }, "has_more": { "type": "boolean" }, "raw_status": { "type": "string" }, "stage": { "$ref": "#/definitions/internal_interfaces_http.ReleaseOrderPipelineStageResponse" } } } } }, "internal_interfaces_http.ReleaseOrderPipelineStageResponse": { "type": "object", "properties": { "created_at": { "type": "string" }, "duration_millis": { "type": "integer" }, "executor_type": { "type": "string" }, "finished_at": { "type": "string" }, "id": { "type": "string" }, "pipeline_scope": { "type": "string" }, "raw_status": { "type": "string" }, "release_order_id": { "type": "string" }, "sort_no": { "type": "integer" }, "stage_name": { "type": "string" }, "started_at": { "type": "string" }, "status": { "type": "string" }, "updated_at": { "type": "string" } } }, "internal_interfaces_http.ReleaseOrderResponse": { "type": "object", "properties": { "application_id": { "type": "string" }, "application_name": { "type": "string" }, "approval_approver_ids": { "type": "array", "items": { "type": "string" } }, "approval_approver_names": { "type": "array", "items": { "type": "string" } }, "approval_mode": { "type": "string" }, "approval_required": { "type": "boolean" }, "approved_at": { "type": "string" }, "approved_by": { "type": "string" }, "binding_id": { "type": "string" }, "business_status": { "type": "string" }, "cd_provider": { "type": "string" }, "concurrent_batch_no": { "type": "string" }, "concurrent_batch_seq": { "type": "integer" }, "created_at": { "type": "string" }, "creator_user_id": { "type": "string" }, "env_code": { "type": "string" }, "finished_at": { "type": "string" }, "git_ref": { "type": "string" }, "has_cd_execution": { "type": "boolean" }, "has_ci_execution": { "type": "boolean" }, "id": { "type": "string" }, "image_tag": { "type": "string" }, "is_concurrent": { "type": "boolean" }, "live_state_can_confirm": { "type": "boolean" }, "live_state_confirmed_at": { "type": "string" }, "live_state_confirmed_by": { "type": "string" }, "live_state_is_current": { "type": "boolean" }, "live_state_status": { "type": "string" }, "operation_type": { "type": "string" }, "order_no": { "type": "string" }, "pipeline_id": { "type": "string" }, "previous_order_no": { "type": "string" }, "project_name": { "type": "string" }, "queue_position": { "type": "integer" }, "queued_reason": { "type": "string" }, "rejected_at": { "type": "string" }, "rejected_by": { "type": "string" }, "rejected_reason": { "type": "string" }, "remark": { "type": "string" }, "source_order_id": { "type": "string" }, "source_order_no": { "type": "string" }, "started_at": { "type": "string" }, "status": { "type": "string" }, "template_id": { "type": "string" }, "template_name": { "type": "string" }, "trigger_type": { "type": "string" }, "triggered_by": { "type": "string" }, "updated_at": { "type": "string" } } }, "internal_interfaces_http.ReleaseOrderStepActionResponse": { "type": "object", "properties": { "data": { "type": "object", "properties": { "order": { "$ref": "#/definitions/internal_interfaces_http.ReleaseOrderResponse" }, "step": { "$ref": "#/definitions/internal_interfaces_http.ReleaseOrderStepResponse" } } } } }, "internal_interfaces_http.ReleaseOrderStepListResponse": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/internal_interfaces_http.ReleaseOrderStepResponse" } } } }, "internal_interfaces_http.ReleaseOrderStepResponse": { "type": "object", "properties": { "created_at": { "type": "string" }, "detail_log": { "type": "string" }, "execution_id": { "type": "string" }, "finished_at": { "type": "string" }, "id": { "type": "string" }, "message": { "type": "string" }, "related_task_count": { "type": "integer" }, "related_task_ids": { "type": "array", "items": { "type": "string" } }, "related_task_summary": { "type": "string" }, "release_order_id": { "type": "string" }, "sort_no": { "type": "integer" }, "started_at": { "type": "string" }, "status": { "type": "string" }, "step_code": { "type": "string" }, "step_name": { "type": "string" }, "step_scope": { "type": "string" } } }, "internal_interfaces_http.ReleaseOrderValueProgressListResponse": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/internal_interfaces_http.ReleaseOrderValueProgressResponse" } } } }, "internal_interfaces_http.ReleaseOrderValueProgressResponse": { "type": "object", "properties": { "executor_param_name": { "type": "string" }, "message": { "type": "string" }, "param_key": { "type": "string" }, "param_name": { "type": "string" }, "pipeline_scope": { "type": "string" }, "required": { "type": "boolean" }, "sort_no": { "type": "integer" }, "status": { "type": "string" }, "updated_at": { "type": "string" }, "value": { "type": "string" }, "value_source": { "type": "string" } } }, "internal_interfaces_http.StartReleaseOrderStepRequest": { "type": "object", "properties": { "message": { "type": "string" } } }, "internal_interfaces_http.SyncExecutorParamDefsResponse": { "type": "object", "properties": { "data": { "$ref": "#/definitions/gos_internal_application_usecase.SyncExecutorParamDefsOutput" } } }, "internal_interfaces_http.SyncPipelinesResponse": { "type": "object", "properties": { "data": { "$ref": "#/definitions/gos_internal_application_usecase.SyncPipelinesOutput" } } }, "internal_interfaces_http.UpdateApplicationRequest": { "type": "object", "properties": { "artifact_type": { "type": "string" }, "description": { "type": "string" }, "gitops_branch_mappings": { "type": "array", "items": { "$ref": "#/definitions/gos_internal_domain_application.GitOpsBranchMapping" } }, "key": { "type": "string" }, "language": { "type": "string" }, "name": { "type": "string" }, "owner": { "type": "string" }, "owner_user_id": { "type": "string" }, "project_id": { "type": "string" }, "release_branches": { "type": "array", "items": { "$ref": "#/definitions/gos_internal_domain_application.ReleaseBranchOption" } }, "repo_url": { "type": "string" }, "status": { "type": "string" } } }, "internal_interfaces_http.UpdateBindingRequest": { "type": "object", "properties": { "external_ref": { "type": "string" }, "pipeline_id": { "type": "string" }, "provider": { "type": "string" }, "status": { "type": "string" }, "trigger_mode": { "type": "string" } } }, "internal_interfaces_http.UpdateExecutorParamDefRequest": { "type": "object", "properties": { "param_key": { "type": "string" } } }, "internal_interfaces_http.UpdatePlatformParamDictRequest": { "type": "object", "properties": { "cd_self_fill": { "type": "boolean" }, "description": { "type": "string" }, "gitops_locator": { "type": "boolean" }, "name": { "type": "string" }, "param_key": { "type": "string" }, "param_type": { "type": "string" }, "required": { "type": "boolean" }, "status": { "type": "integer" } } }, "internal_interfaces_http.VerifyPipelineResponse": { "type": "object", "properties": { "data": { "type": "object", "properties": { "job_name": { "type": "string" }, "job_url": { "type": "string" }, "pipeline": { "$ref": "#/definitions/internal_interfaces_http.PipelineResponse" }, "verified": { "type": "boolean" } } } } } } }