0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-29 01:46:21 +01:00
gitea/modules/structs
6543 6baa5d7588 [API] Add notification endpoint (#9488)
* [API] Add notification endpoints

 * add func GetNotifications(opts FindNotificationOptions)
 * add func (n *Notification) APIFormat()
 * add func (nl NotificationList) APIFormat()
 * add func (n *Notification) APIURL()
 * add func (nl NotificationList) APIFormat()
 * add LoadAttributes functions (loadRepo, loadIssue, loadComment, loadUser)
 * add func (c *Comment) APIURL()
 * add func (issue *Issue) GetLastComment()
 * add endpoint GET /notifications
 * add endpoint PUT /notifications
 * add endpoint GET /repos/{owner}/{repo}/notifications
 * add endpoint PUT /repos/{owner}/{repo}/notifications
 * add endpoint GET /notifications/threads/{id}
 * add endpoint PATCH /notifications/threads/{id}

* Add TEST

* code format

* code format
2020-01-09 11:56:32 +00:00
..
admin_user.go
attachment.go
doc.go
fork.go
git_blob.go
git_hook.go
hook.go update swagger info (#9558) 2019-12-31 12:11:15 +08:00
issue_comment.go
issue_label.go
issue_milestone.go
issue_reaction.go [API] Fix 9544 | return 200 when reaction already exist (#9550) 2019-12-31 03:21:21 -05:00
issue_stopwatch.go [API] extend StopWatch (#9196) 2019-12-11 23:23:05 -05:00
issue_tracked_time.go [API] Extend times API (#9200) 2019-12-27 20:30:58 +00:00
issue.go Add HTML URL to API Issues (#9654) 2020-01-08 23:10:34 +00:00
lfs_lock.go
miscellaneous.go
notifications.go [API] Add notification endpoint (#9488) 2020-01-09 11:56:32 +00:00
org_member.go
org_team.go Team permission to create repository in organization (#8312) 2019-11-20 19:27:49 +08:00
org_type.go
org.go
pull.go
release.go
repo_branch.go Update branch API endpoint to show effective branch protection. (#9031) 2019-11-16 19:39:18 +00:00
repo_collaborator.go
repo_commit.go [API] Extend contents with dates (#9464) 2019-12-24 10:33:52 +08:00
repo_file.go [API] Extend contents with dates (#9464) 2019-12-24 10:33:52 +08:00
repo_key.go
repo_refs.go
repo_tag.go
repo_topic.go
repo_tree.go
repo_watch.go
repo.go Add release_counter to Repo API (#9214) 2019-11-30 14:28:47 -05:00
status.go
task.go
user_app.go
user_email.go
user_gpgkey.go
user_key.go
user.go
utils.go