7.25. user
管理当前用户。
7.25.1. createStar 复制链接链接已复制到粘贴板!
星级存储库.
POST /api/v1/user/starred
授权: oauth2_implicit (存储库:read)
请求正文模式(application/json)
| 名称 | 描述 | 模式 |
|---|---|---|
|
namespace | 存储库所属的命名空间 | 字符串 |
|
需要 仓库 | 仓库名称 | 字符串 |
响应
示例命令
7.25.2. listStarredRepos 复制链接链接已复制到粘贴板!
列出所有星号的存储库。
GET /api/v1/user/starred
授权: oauth2_implicit (user:admin)
查询参数
| 类型 | Name | 描述 | 模式 |
|---|---|---|---|
| query |
next_page | 下一页面的页面令牌 | 字符串 |
响应
示例命令
curl -X GET "https://quay-server.example.com/api/v1/user/starred?next_page=<next_page_token>" \ -H "Authorization: Bearer <your_access_token>"
$ curl -X GET "https://quay-server.example.com/api/v1/user/starred?next_page=<next_page_token>" \
-H "Authorization: Bearer <your_access_token>"
7.25.3. getLoggedInUser 复制链接链接已复制到粘贴板!
获取经过身份验证的用户的用户信息。
GET /api/v1/user/
授权: oauth2_implicit (user:read)
响应
| HTTP 代码 | 描述 | 模式 |
|---|---|---|
| 200 | 成功调用 | |
| 400 | 错误请求 | |
| 401 | 需要会话 | |
| 403 | 未授权访问 | |
| 404 | 未找到 |
示例命令
curl -X GET "https://quay-server.example.com/api/v1/user/" \ -H "Authorization: Bearer <your_access_token>"
$ curl -X GET "https://quay-server.example.com/api/v1/user/" \
-H "Authorization: Bearer <your_access_token>"
7.25.4. deleteStar 复制链接链接已复制到粘贴板!
从存储库中删除星形。
DELETE /api/v1/user/starred/{repository}
授权: oauth2_implicit (user:admin)
路径参数
| 类型 | Name | 描述 | 模式 |
|---|---|---|---|
| path |
需要 仓库 | 存储库的完整路径。例如 namespace/name | 字符串 |
响应
示例命令
curl -X DELETE "https://quay-server.example.com/api/v1/user/starred/namespace/repository-name" \ -H "Authorization: Bearer <your_access_token>"
$ curl -X DELETE "https://quay-server.example.com/api/v1/user/starred/namespace/repository-name" \
-H "Authorization: Bearer <your_access_token>"
7.25.5. getUserInformation 复制链接链接已复制到粘贴板!
获取指定用户的用户信息。
GET /api/v1/users/{username}
授权:
路径参数
| 类型 | Name | 描述 | 模式 |
|---|---|---|---|
| path |
需要 的用户名 | 字符串 |
响应
示例命令
curl -X GET "https://quay-server.example.com/api/v1/users/example_user" \ -H "Authorization: Bearer <your_access_token>"
$ curl -X GET "https://quay-server.example.com/api/v1/users/example_user" \
-H "Authorization: Bearer <your_access_token>"