mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-03 09:52:26 +02:00
* 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
This commit is contained in:
parent
ce274d652f
commit
44de66bf50
9 changed files with 107 additions and 5 deletions
|
@ -21,3 +21,10 @@ type swaggerNotificationThreadList struct {
|
|||
// in:body
|
||||
Body []api.NotificationThread `json:"body"`
|
||||
}
|
||||
|
||||
// Number of unread notifications
|
||||
// swagger:response NotificationCount
|
||||
type swaggerNotificationCount struct {
|
||||
// in:body
|
||||
Body api.NotificationCount `json:"body"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue