7.6. globalmessages
消息 API.
7.6.1. createGlobalMessage 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
创建消息。
POST /api/v1/messages
授权: oauth2_implicit (超级:user)
请求正文模式(application/json)
创建新消息
名称 | 描述 | 模式 |
---|---|---|
message | 单个消息 | 对象 |
响应
示例命令
7.6.2. getGlobalMessages 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
返回超级用户消息。
GET /api/v1/messages
授权:
响应
示例命令
curl -X GET "https://<quay-server.example.com>/api/v1/messages" \ -H "Authorization: Bearer <access_token>"
$ curl -X GET "https://<quay-server.example.com>/api/v1/messages" \
-H "Authorization: Bearer <access_token>"
7.6.3. deleteGlobalMessage 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
删除消息。
DELETE /api/v1/message/{uuid}
授权: oauth2_implicit (超级:user)
路径参数
类型 | Name | 描述 | 模式 |
---|---|---|---|
path |
UUID | 字符串 |
响应
示例命令
curl -X DELETE "https://<quay-server.example.com>/api/v1/message/<uuid>" \ -H "Authorization: Bearer <access_token>"
$ curl -X DELETE "https://<quay-server.example.com>/api/v1/message/<uuid>" \
-H "Authorization: Bearer <access_token>"