diff options
author | zeripath <art27@cantab.net> | 2019-07-25 11:55:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-25 11:55:06 +0100 |
commit | 734aa965088fb72330f4ad744c187c614cce3d8b (patch) | |
tree | 96c97d3333b54e327a2ff5b6a5549b9567157eff /templates | |
parent | 5efd3630bc21d4b0ba6ff492d16d4c7e2814dd1f (diff) | |
download | gitea-734aa965088fb72330f4ad744c187c614cce3d8b.tar.gz gitea-734aa965088fb72330f4ad744c187c614cce3d8b.zip |
Fix #7136: Add paging and extend API GetCommitStatuses (#7141)
* Fix #7136: Add paging and extend API GetCommitStatuses
* update swagger
* Update routers/api/v1/repo/status.go
Co-Authored-By: techknowlogick <matti@mdranta.net>
* Update routers/api/v1/repo/status.go
Co-Authored-By: techknowlogick <matti@mdranta.net>
* Update routers/api/v1/repo/status.go
Co-Authored-By: techknowlogick <matti@mdranta.net>
* Apply suggestions from code review
Diffstat (limited to 'templates')
-rw-r--r-- | templates/swagger/v1_json.tmpl | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index e56fa61eed..43eca15871 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -1561,6 +1561,12 @@ "name": "ref", "in": "path", "required": true + }, + { + "type": "integer", + "description": "page number of results", + "name": "page", + "in": "query" } ], "responses": { @@ -5057,6 +5063,38 @@ "name": "sha", "in": "path", "required": true + }, + { + "type": "integer", + "description": "page number of results", + "name": "page", + "in": "query" + }, + { + "enum": [ + "oldest", + "recentupdate", + "leastupdate", + "leastindex", + "highestindex" + ], + "type": "string", + "description": "type of sort", + "name": "sort", + "in": "query" + }, + { + "enum": [ + "pending", + "success", + "error", + "failure", + "warning" + ], + "type": "string", + "description": "type of state", + "name": "state", + "in": "query" } ], "responses": { |