mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-10-25 03:57:13 +08: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:
@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user