6.2. 发现 Red Hat Quay API 端点
Red Hat Quay API 端点可以使用 API 发现。
使用以下步骤发现可用的 API 端点。
先决条件
- 您已创建了 OAuth 2 访问令牌。
流程
输入以下
GET /api/v1/discovery
命令,以 swagger API 格式列出所有可用的 API 端点:$ curl -X GET "https://<quay-server.example.com>/api/v1/discovery?query=true" \ -H "Authorization: Bearer <access_token>"
输出示例
--- : "Manage the tags of a repository."}, {"name": "team", "description": "Create, list and manage an organization's teams."}, {"name": "trigger", "description": "Create, list and manage build triggers."}, {"name": "user", "description": "Manage the current user."}, {"name": "userfiles", "description": ""}]} ---