This repository has been archived on 2024-01-04. You can view files and clone it, but cannot push or open issues or pull requests.
forgejo/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.go Add HTML URL to API Issues (#9654) 2020-01-08 23:10:34 +00: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
lfs_lock.go
miscellaneous.go
notifications.go [API] Add notification endpoint (#9488) 2020-01-09 11:56:32 +00:00
org.go
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
pull.go
release.go
repo.go Add release_counter to Repo API (#9214) 2019-11-30 14:28:47 -05:00
repo_branch.go
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
status.go
task.go
user.go
user_app.go
user_email.go
user_gpgkey.go
user_key.go
utils.go