aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/notify
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2021-06-17 16:02:34 +0200
committerGitHub <noreply@github.com>2021-06-17 16:02:34 +0200
commitb3fbd37e992cf3f9f42f49818087c67d464000eb (patch)
treeddb4aee79d6dfafaa3ff64acffed6f119c222acd /routers/api/v1/notify
parent0db1048c3ab0b0802779fd84b86c4335c37e54b3 (diff)
downloadgitea-b3fbd37e992cf3f9f42f49818087c67d464000eb.tar.gz
gitea-b3fbd37e992cf3f9f42f49818087c67d464000eb.zip
[API] expose repo.GetReviewers() & repo.GetAssignees() (#16168)
* API: expose repo.GetReviewers() & repo.GetAssignees() * Add tests * fix unrelated swagger query type
Diffstat (limited to 'routers/api/v1/notify')
-rw-r--r--routers/api/v1/notify/repo.go2
-rw-r--r--routers/api/v1/notify/user.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/notify/repo.go b/routers/api/v1/notify/repo.go
index 4deb16a227..af55d1d49c 100644
--- a/routers/api/v1/notify/repo.go
+++ b/routers/api/v1/notify/repo.go
@@ -65,7 +65,7 @@ func ListRepoNotifications(ctx *context.APIContext) {
// - name: all
// in: query
// description: If true, show notifications marked as read. Default value is false
- // type: string
+ // type: boolean
// - name: status-types
// in: query
// description: "Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread & pinned"
diff --git a/routers/api/v1/notify/user.go b/routers/api/v1/notify/user.go
index 1ff62622b0..475a541bdc 100644
--- a/routers/api/v1/notify/user.go
+++ b/routers/api/v1/notify/user.go
@@ -27,7 +27,7 @@ func ListNotifications(ctx *context.APIContext) {
// - name: all
// in: query
// description: If true, show notifications marked as read. Default value is false
- // type: string
+ // type: boolean
// - name: status-types
// in: query
// description: "Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread & pinned."