diff options
author | 6543 <6543@obermui.de> | 2020-11-23 21:49:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-23 20:49:36 +0000 |
commit | f88a2eae9777e0be612647bc17227c1ca13616ba (patch) | |
tree | 78aad7908e3fa61e674610cb24c7f4d1b8ad9bc2 /templates/swagger/v1_json.tmpl | |
parent | 78204a7a71eedbc099aff51abd88cb16f60d50a8 (diff) | |
download | gitea-f88a2eae9777e0be612647bc17227c1ca13616ba.tar.gz gitea-f88a2eae9777e0be612647bc17227c1ca13616ba.zip |
[API] Add more filters to issues search (#13514)
* Add time filter for issue search
* Add limit option for paggination
* Add Filter for: Created by User, Assigned to User, Mentioning User
* update swagger
* Add Tests for limit, before & since
Diffstat (limited to 'templates/swagger/v1_json.tmpl')
-rw-r--r-- | templates/swagger/v1_json.tmpl | 40 |
1 files changed, 39 insertions, 1 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 9d775da7d6..8bcfc43d73 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -1880,10 +1880,48 @@ "in": "query" }, { + "type": "string", + "format": "date-time", + "description": "Only show notifications updated after the given time. This is a timestamp in RFC 3339 format", + "name": "since", + "in": "query" + }, + { + "type": "string", + "format": "date-time", + "description": "Only show notifications updated before the given time. This is a timestamp in RFC 3339 format", + "name": "before", + "in": "query" + }, + { + "type": "boolean", + "description": "filter (issues / pulls) assigned to you, default is false", + "name": "assigned", + "in": "query" + }, + { + "type": "boolean", + "description": "filter (issues / pulls) created by you, default is false", + "name": "created", + "in": "query" + }, + { + "type": "boolean", + "description": "filter (issues / pulls) mentioning you, default is false", + "name": "mentioned", + "in": "query" + }, + { "type": "integer", - "description": "page number of requested issues", + "description": "page number of results to return (1-based)", "name": "page", "in": "query" + }, + { + "type": "integer", + "description": "page size of results", + "name": "limit", + "in": "query" } ], "responses": { |