mirror of
https://github.com/go-gitea/gitea.git
synced 2025-09-29 08:35:25 +02:00
update swagger docu
This commit is contained in:
parent
8cfb047983
commit
8fd54f285a
@ -912,14 +912,19 @@ func GetWorkflowRuns(ctx *context.APIContext) {
|
|||||||
// description: name of the repository
|
// description: name of the repository
|
||||||
// type: string
|
// type: string
|
||||||
// required: true
|
// required: true
|
||||||
// - name: run
|
// - name: event
|
||||||
// in: path
|
|
||||||
// description: runid of the workflow run
|
|
||||||
// type: integer
|
|
||||||
// required: true
|
|
||||||
// - name: name
|
|
||||||
// in: query
|
// in: query
|
||||||
// description: name of the artifact
|
// description: workflow event name
|
||||||
|
// type: string
|
||||||
|
// required: false
|
||||||
|
// - name: branch
|
||||||
|
// in: query
|
||||||
|
// description: workflow branch
|
||||||
|
// type: string
|
||||||
|
// required: false
|
||||||
|
// - name: status
|
||||||
|
// in: query
|
||||||
|
// description: workflow status (pending, queued, in_progress, failure, success, skipped)
|
||||||
// type: string
|
// type: string
|
||||||
// required: false
|
// required: false
|
||||||
// responses:
|
// responses:
|
||||||
@ -1042,11 +1047,6 @@ func GetWorkflowJobs(ctx *context.APIContext) {
|
|||||||
// description: runid of the workflow run
|
// description: runid of the workflow run
|
||||||
// type: integer
|
// type: integer
|
||||||
// required: true
|
// required: true
|
||||||
// - name: name
|
|
||||||
// in: query
|
|
||||||
// description: name of the artifact
|
|
||||||
// type: string
|
|
||||||
// required: false
|
|
||||||
// responses:
|
// responses:
|
||||||
// "200":
|
// "200":
|
||||||
// "$ref": "#/responses/ArtifactsList"
|
// "$ref": "#/responses/ArtifactsList"
|
||||||
|
25
templates/swagger/v1_json.tmpl
generated
25
templates/swagger/v1_json.tmpl
generated
@ -4292,16 +4292,21 @@
|
|||||||
"required": true
|
"required": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "integer",
|
"type": "string",
|
||||||
"description": "runid of the workflow run",
|
"description": "workflow event name",
|
||||||
"name": "run",
|
"name": "event",
|
||||||
"in": "path",
|
"in": "query"
|
||||||
"required": true
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "name of the artifact",
|
"description": "workflow branch",
|
||||||
"name": "name",
|
"name": "branch",
|
||||||
|
"in": "query"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"description": "workflow status (pending, queued, in_progress, failure, success, skipped)",
|
||||||
|
"name": "status",
|
||||||
"in": "query"
|
"in": "query"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -4447,12 +4452,6 @@
|
|||||||
"name": "run",
|
"name": "run",
|
||||||
"in": "path",
|
"in": "path",
|
||||||
"required": true
|
"required": true
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"description": "name of the artifact",
|
|
||||||
"name": "name",
|
|
||||||
"in": "query"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user