6.2. Red Hat Quay API エンドポイントの検出
Red Hat Quay API エンドポイントは、API を使用して検出できます。
利用可能な API エンドポイントを検出するには、次の手順に従います。
前提条件
- OAuth 2 アクセストークンを作成した。
手順
Swagger API 形式で使用可能なすべての API エンドポイントをリスト表示するには、次の
GET /api/v1/discovery
$ 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": ""}]} ---