diff options
author | 6543 <6543@obermui.de> | 2021-06-17 00:33:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-16 18:33:37 -0400 |
commit | 0e081ff0ce61227d5f34f1d7f8213d9f407f1f3d (patch) | |
tree | ff3bf587cf5af0cea1226b2fa219b27a3336594c /templates | |
parent | ffbf35b7e9e2ea65525229f2c7d5a076c98e66ba (diff) | |
download | gitea-0e081ff0ce61227d5f34f1d7f8213d9f407f1f3d.tar.gz gitea-0e081ff0ce61227d5f34f1d7f8213d9f407f1f3d.zip |
[API] ListIssues add more filters (#16174)
* [API] ListIssues add more filters:
optional filter repo issues by:
- since
- before
- created_by
- assigned_by
- mentioned_by
* Add Tests
* Update routers/api/v1/repo/issue.go
Co-authored-by: Lanre Adelowo <adelowomailbox@gmail.com>
* Apply suggestions from code review
Co-authored-by: Lanre Adelowo <adelowomailbox@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/swagger/v1_json.tmpl | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 8ad9ae5a43..8ea5edb6fc 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -4235,6 +4235,38 @@ "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": "string", + "description": "filter (issues / pulls) created to", + "name": "created_by", + "in": "query" + }, + { + "type": "string", + "description": "filter (issues / pulls) assigned to", + "name": "assigned_by", + "in": "query" + }, + { + "type": "string", + "description": "filter (issues / pulls) mentioning to", + "name": "mentioned_by", + "in": "query" + }, + { "type": "integer", "description": "page number of results to return (1-based)", "name": "page", |