Get a notification from the user
Get the user's notifications based on the notification ID
Path Parameters
- id required
notifications id
Header Parameters
- Authorization required
Oauth2 token or private token(need Bearer+" " begin)
- 200
- 400
- 401
- 403
success
- application/json
- Schema
- Example (from schema)
Schema
- id string
notify message id
- content string
notify message content
- unread boolean
notify message is unread
- updated_at string
notify message update date time
- url string
notify message api url
- html_url string
notify message html url
- type string
notify type
namespace object
belong to organization or project's namespace info
id stringorganization or project's id
name stringorganization or project's name
path stringorganization or project's path
type stringnamespace type
actor object
sender info
login stringsender's username
id stringsender's userid
avatar_url stringsender's avatar url
url stringsender info api url
html_url stringsender profile html url
followers_url stringsender's followers url
followering_url stringsender's followering url
gists_url stringsender's gists url
starred_url stringsender's starred url
subscriptions_url stringsender's subscriptions url
organizations_url stringsender's organizations url
repos_url stringsender's repos url
events_url stringsender's events url
received_events_url stringsender's received events url
type stringsender's user type
site_admin stringsender is a admin
{
"id": "63db126c0566d2f7d2c9498c",
"content": "nevins35更改了讨论#15可以帮帮我吗-打不开了的状态为:重新打开",
"unread": false,
"updated_at": "2024-01-10T18:04:18+08:00",
"url": "https://api.atomgit.com/notifications/threads/51662c27f70c461cb04deafad374d5f4",
"html_url": "https://atomgit.com/orgs/nevins_logo/discussions/15",
"type": "discuss_update_state",
"namespace": {
"id": "636c4fe43f24db95beef4064",
"name": "nevins_logo",
"path": "nevins_logo",
"type": "organization"
},
"actor": {
"login": "mrpuatomgit",
"id": "63db126c0566d2f7d2c9498c",
"avatar_url": "https://img-host/uploads/user/1656318880150_5104.png",
"url": "https://api.atomgit.com/users/leige",
"html_url": "https://atomgit.com/mrpuatomgit",
"followers_url": null,
"followering_url": null,
"gists_url": null,
"starred_url": null,
"subscriptions_url": null,
"organizations_url": null,
"repos_url": null,
"events_url": null,
"received_events_url": null,
"type": "user",
"site_admin": false
}
}
Parameters id is error
fail,need login or invalid token
forbid, no permission