获取用户一条通知
根据通知的id,获取用户的通知
Path Parameters
- id required
通知的ID
Header Parameters
- Authorization required
Oauth2 token或者私人token(需以Bearer加空格开头)
Responses
- 200
- 400
- 401
- 403
操作成功
- application/json
- Schema
- Example (from schema)
Schema
- id string
通知的id
- content string
通知的内容
- unread boolean
是否未读
- updated_at string
创建日期
- url string
通知详情的api地址
- html_url string
通知详情的html页面地址
- type string
通知类型
namespace object
所属组织或项目的命名空间信息
id string组织或项目的id
name string组织或项目名称路径
path string组织或项目命名空间路径
type string组织或项目的类型:organization:组织;project:仓库
actor object
发送人信息
login string发送人用户名
id string发送人用户id
avatar_url string发送人用户头像
url string发送人信息api地址
html_url string发送人主页地址
followers_url string发送人的followers url
followering_url string发送人的followering url
gists_url string发送人的 gists url
starred_url string发送人的 starred url
subscriptions_url string发送人的 subscriptions url
organizations_url string发送人的 organizations url
repos_url string发送人的 repos url
events_url string发送人的 events url
received_events_url string发送人的 received events url
type string发送人的 user type
site_admin string发送人的是否是管理员
{
"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
}
}
id参数有误,通知记录不存在
操作失败,暂未登录
暂无权限,操作失败
Loading...