풀 데이터 조회
풀 데이터 조회
주어진 리포지토리의 풀(pull) 데이터를 조회해요.
출처: 문서
본문
GET /namespaces/{namespace}/repos/{repo}/pulls
풀 데이터 조회 작업이에요. 주어진 리포지토리의 풀(pull) 데이터를 조회해요.
요청 예시
실행 전에 자리 표시자를 바꾸고 필요 자격 증명이나 요청 바디를 채워야 해요.
curl \
--request GET \
--header "Authorization: Bearer ${TOKEN}" \
--header 'Accept: application/json' \
'https://hub.docker.com/api/publisher/analytics/v1/namespaces/<NAMESPACE>/repos/<REPO>/pulls'
요청과 응답
응답 200 Success
Schema:
{
"$ref": "#/components/schemas/PullData"
}
Schema example:
{
"pulls": [
{
"end": "2022-08-07T00:00:00Z",
"ipCount": 10,
"pullCount": 11,
"repo": "neo4j-admin",
"start": "2022-08-01T00:00:00Z"
},
{
"end": "2022-08-14T00:00:00Z",
"ipCount": 10,
"pullCount": 11,
"repo": "neo4j-admin",
"start": "2022-08-08T00:00:00Z"
}
]
}
Schema example:
{
"pulls": null
}
응답 404 Not found - repo doesn't exist or user does not have permission to access it
No response content is declared.
전체 작업 계약
{
"description": "Gets pulls for the given repo.",
"operationId": "getRepoPulls",
"parameters": [
{
"description": "Namespace to fetch data for",
"in": "path",
"name": "namespace",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "Repository to fetch data for",
"in": "path",
"name": "repo",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "Timespan type for fetching data",
"in": "query",
"name": "timespan",
"required": false,
"schema": {
"$ref": "#/components/schemas/TimespanType"
}
},
{
"description": "Relative period of the period to fetch data",
"in": "query",
"name": "period",
"required": false,
"schema": {
"$ref": "#/components/schemas/PeriodType"
}
},
{
"description": "Field to group the data by",
"in": "query",
"name": "group",
"required": false,
"schema": {
"$ref": "#/components/schemas/GroupType"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PullData"
}
}
},
"description": "Success"
},
"404": {
"description": "Not found - repo doesn't exist or user does not have permission to access it"
}
},
"summary": "Get pull data",
"tags": [
"namespaces"
]
}