Get a single milestone for the repository.
Get a single milestone for the repository.
Path Parameters
- owner required
The owner of the repository, generally called "username". The name is not case sensitive.
- repo required
repository name, the name is not case sensitive
- number required
milestones id
Header Parameters
- Authorization required
Private token | app token(ats) (needs to start with Bearer plus a space)
- 200
- 400
- 401
- 403
- 404
Success
- application/json
- Schema
- Example (from schema)
Schema
- id string
Milestones id
- number String
Milestones number
- state string
Milestones state:open or closed
- title string
Milestones title
- description string
Milestones description
- repository_id string
Milestone belongs to the repo id
- open_issues int
Milestone associated open issue count
- closed_issues int
Milestone associated closed issue count
- url string
Milestone openapi url
- html_url string
Milestone web url
- due_on string
Milestone deadline datetime
- created_at string
Milestone creation datetime
- updated_at string
Milestone update datetime
{
"id": "64a2791c36ca86246aed3612",
"number": "67628decf0646125c6170a71",
"state": "closed",
"title": "Milestones title",
"description": "Milestones description",
"repository_id": 34366433,
"open_issues": 2,
"closed_issues": 1,
"url": "https://api.atomgit.com/repos/zxjava/test2/milestones/67628decf0646125c6170a71",
"html_url": "https://atomgit.com/zxjava/test2/milestones/67628decf0646125c6170a71",
"due_on": "2023-07-04T17:03:05+08:00",
"created_at": "2023-07-04T17:03:05+08:00",
"updated_at": "2023-07-04T17:03:05+08:00"
}
Parameter error.
Invalid token, please check if the token is correct.
- application/json
- application/xml
- Schema
- Example (from schema)
Schema
- error string
error name
- error_description string
wrong description
{
"error": "invalid_token",
"error_description": "Invalid token, please provide correct token"
}
- Schema
- Example (from schema)
Schema
- error string
error name
- error_description string
wrong description
<root>
<error>invalid_token</error>
<error_description>Invalid token, please provide correct token</error_description>
</root>
Permission deny
- application/json
- Schema
- Example (from schema)
Schema
- error_code string
error name
- error_message string
wrong description
{
"error_code": "string",
"error_message": "string"
}
Resource does not exist