Curl
GET
curl -X POST <YOUR ENDPOINT URL> --header "apikey: <YOURTOKEN>" --data '
{
"options": {
"method": "GET",
"headers": {
"Content-Type": "application/json",
"Accept": "application/json"
}
},
"url": "/rest/api/3/issue/DEV-78"
}'
POST
curl -X POST <YOUR ENDPOINT URL> --header "apikey: <YOURTOKEN>" --data '
{
"options": {
"method": "POST",
"headers": {
"Content-Type": "application/json",
"Accept": "application/json"
},
"body": {
"fields": {
"project":{
"name": "<your project name>"
},
"summary": "Create Issue via POST.",
"description": "Creating of an issue via a POST request using the API Key Manager",
"issuetype": {
"id": "<your issue type id>"
}
}
}
},
"url": "/rest/api/2/issue"
}'