]> source.dussan.org Git - gitea.git/commit
[API] add endpoint to check notifications [Extend #9488] (#9595)
author6543 <6543@obermui.de>
Tue, 14 Jan 2020 15:37:19 +0000 (16:37 +0100)
committerAntoine GIRARD <sapk@users.noreply.github.com>
Tue, 14 Jan 2020 15:37:19 +0000 (16:37 +0100)
commit44de66bf50d1ab9a5acc298063cd942768092a19
treefda1b76b954d720dfdfefded22883a51ab52e45e
parentce274d652f2be03364bc0d0a8cb1b4d1996b16c7
[API] add endpoint to check notifications [Extend #9488] (#9595)

* introduce GET /notifications/new

* add TEST

* use Sprintf instead of path.Join

* Error more verbose

* return number of notifications if unreaded exist

* 200 http status for available notifications
integrations/api_notification_test.go
models/issue.go
models/issue_comment.go
models/notification.go
modules/structs/notifications.go
routers/api/v1/api.go
routers/api/v1/notify/notifications.go [new file with mode: 0644]
routers/api/v1/swagger/notify.go
templates/swagger/v1_json.tmpl