Basic Introduction
Common Resources
Practicing with Postman
Practicing in JS
curl -D- -X GET -H "Authorization: Basic ZnJlZDpmcmVk" -H "Content-Type: application/json" "https://example.com:8081/rest/api/2/issue/QA-31"
https://jira.atlassian.com/rest/api/latest/issue/JRA-9?expand=names,renderedFields
{
"expand": "widgets",
"self": "http://www.example.com/jira/rest/api/resource/KEY-1",
"widgets": {
"widgets": [],
"size": 5
}
}
{
"startAt" : 0,
"maxResults" : 10,
"total": 200,
"values": [
{ /* result 0 */ },
{ /* result 1 */ },
{ /* result 2 */ }
]
}
JIRA uses pagination to limit the response size for resources that return a potentially large collection of items. A request to a paged API will result in a values array wrapped in a JSON object with some paging metadata, for example:
?orderBy=name
//Order by "name" ascending
?orderBy=+name
//Order by "name" ascending
?orderBy=-name
//Order by "name" descendin