summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/swagger/v1_json.tmpl202
1 files changed, 202 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index f726176883..1832e9d732 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -992,6 +992,34 @@
}
}
},
+ "/admin/runners/jobs": {
+ "get": {
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "admin"
+ ],
+ "summary": "Search action jobs according filter conditions",
+ "operationId": "adminSearchRunJobs",
+ "parameters": [
+ {
+ "type": "string",
+ "description": "a comma separated list of run job labels to search for",
+ "name": "labels",
+ "in": "query"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/RunJobList"
+ },
+ "403": {
+ "$ref": "#/responses/forbidden"
+ }
+ }
+ }
+ },
"/admin/runners/registration-token": {
"get": {
"produces": [
@@ -2284,6 +2312,41 @@
}
}
},
+ "/orgs/{org}/actions/runners/jobs": {
+ "get": {
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "organization"
+ ],
+ "summary": "Search for organization's action jobs according filter conditions",
+ "operationId": "orgSearchRunJobs",
+ "parameters": [
+ {
+ "type": "string",
+ "description": "name of the organization",
+ "name": "org",
+ "in": "path",
+ "required": true
+ },
+ {
+ "type": "string",
+ "description": "a comma separated list of run job labels to search for",
+ "name": "labels",
+ "in": "query"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/RunJobList"
+ },
+ "403": {
+ "$ref": "#/responses/forbidden"
+ }
+ }
+ }
+ },
"/orgs/{org}/actions/runners/registration-token": {
"get": {
"produces": [
@@ -4639,6 +4702,48 @@
}
}
},
+ "/repos/{owner}/{repo}/actions/runners/jobs": {
+ "get": {
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "repository"
+ ],
+ "summary": "Search for repository's action jobs according filter conditions",
+ "operationId": "repoSearchRunJobs",
+ "parameters": [
+ {
+ "type": "string",
+ "description": "owner of the repo",
+ "name": "owner",
+ "in": "path",
+ "required": true
+ },
+ {
+ "type": "string",
+ "description": "name of the repo",
+ "name": "repo",
+ "in": "path",
+ "required": true
+ },
+ {
+ "type": "string",
+ "description": "a comma separated list of run job labels to search for",
+ "name": "labels",
+ "in": "query"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/RunJobList"
+ },
+ "403": {
+ "$ref": "#/responses/forbidden"
+ }
+ }
+ }
+ },
"/repos/{owner}/{repo}/actions/runners/registration-token": {
"get": {
"produces": [
@@ -17399,6 +17504,37 @@
}
}
},
+ "/user/actions/runners/jobs": {
+ "get": {
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "user"
+ ],
+ "summary": "Search for user's action jobs according filter conditions",
+ "operationId": "userSearchRunJobs",
+ "parameters": [
+ {
+ "type": "string",
+ "description": "a comma separated list of run job labels to search for",
+ "name": "labels",
+ "in": "query"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/RunJobList"
+ },
+ "401": {
+ "$ref": "#/responses/unauthorized"
+ },
+ "403": {
+ "$ref": "#/responses/forbidden"
+ }
+ }
+ }
+ },
"/user/actions/runners/registration-token": {
"get": {
"produces": [
@@ -20387,6 +20523,63 @@
},
"x-go-package": "code.gitea.io/gitea/modules/structs"
},
+ "ActionRunJob": {
+ "description": "ActionRunJob represents a job of a run",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "the action run job id",
+ "type": "integer",
+ "format": "int64",
+ "x-go-name": "ID"
+ },
+ "name": {
+ "description": "the action run job name",
+ "type": "string",
+ "x-go-name": "Name"
+ },
+ "needs": {
+ "description": "the action run job needed ids",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "x-go-name": "Needs"
+ },
+ "owner_id": {
+ "description": "the owner id",
+ "type": "integer",
+ "format": "int64",
+ "x-go-name": "OwnerID"
+ },
+ "repo_id": {
+ "description": "the repository id",
+ "type": "integer",
+ "format": "int64",
+ "x-go-name": "RepoID"
+ },
+ "runs_on": {
+ "description": "the action run job labels to run on",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "x-go-name": "RunsOn"
+ },
+ "status": {
+ "description": "the action run job status",
+ "type": "string",
+ "x-go-name": "Status"
+ },
+ "task_id": {
+ "description": "the action run job latest task id",
+ "type": "integer",
+ "format": "int64",
+ "x-go-name": "TaskID"
+ }
+ },
+ "x-go-package": "code.gitea.io/gitea/modules/structs"
+ },
"ActionTask": {
"description": "ActionTask represents a ActionTask",
"type": "object",
@@ -28678,6 +28871,15 @@
}
}
},
+ "RunJobList": {
+ "description": "RunJobList is a list of action run jobs",
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ActionRunJob"
+ }
+ }
+ },
"SearchResults": {
"description": "SearchResults",
"schema": {