여러 리포지토리의 풀 데이터 조회
여러 리포지토리의 풀 데이터 조회
주어진 리포지토리들의 풀(pull) 데이터를 조회해요.
출처: 문서
본문
GET /repos/pulls
여러 리포지토리의 풀 데이터 조회 작업이에요. 주어진 리포지토리들의 풀(pull) 데이터를 조회해요.
요청 예시
실행 전에 자리 표시자를 바꾸고 필요 자격 증명이나 요청 바디를 채워야 해요.
curl \
--request GET \
--header "Authorization: Bearer ${TOKEN}" \
--header 'Accept: application/json' \
'https://hub.docker.com/api/publisher/analytics/v1/repos/pulls?repos=%3CREPOS%3E'
요청과 응답
응답 200 Success
Schema:
{
"$ref": "#/components/schemas/ReposPullData"
}
Schema example:
{
"repos": {
"org2/neo4j": {
"pulls": [
{
"end": "2022-08-07T00:00:00Z",
"ipCount": 41490,
"pullCount": 272407,
"repo": "neo4j",
"start": "2022-08-01T00:00:00Z"
},
{
"end": "2022-08-14T00:00:00Z",
"ipCount": 41490,
"pullCount": 272407,
"repo": "neo4j",
"start": "2022-08-08T00:00:00Z"
}
]
},
"org2/neo4j-admin": {
"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"
}
]
}
}
}
전체 작업 계약
{
"description": "Gets pull for the given repos.",
"operationId": "getManyReposPulls",
"parameters": [
{
"description": "Repositories to fetch data for (maximum of 50 repositories per request).",
"in": "query",
"name": "repos",
"required": true,
"schema": {
"items": {
"type": "string"
},
"type": "array"
}
},
{
"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/ReposPullData"
}
}
},
"description": "Success"
}
},
"summary": "Get pull data for multiple repos",
"tags": [
"namespaces"
]
}