Skip to main content

Issue

Definition

Issue Type
issue.json
{
"id": 0,
"planTypeID": 0,
"userID": 0,
"bucketID": 0,
"issueName": "",
"issueDescription": "",
"weather": "",
"humidity": 0,
"temperature": 0,
"status": 0,
"issueUserID": 0,
"completedAt": "",
"createdAt": "",
"updatedAt": "",
}

Get Issues

curl -X GET "https://${baseUrl}/issue/?\$filter=&\$orderBy=&\$page=1&\$pageSize=10" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"

Get Issue

curl -X GET "https://${baseUrl}/issue/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"

Apply Issue.ID

curl -X POST "https://${baseUrl}/apply/issue/id/" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"

Create Issue

curl -X POST "https://${baseUrl}/issue/" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d @issue.json
info
issue.json
{
"planTypeID": 0,
"userID": 0,
"bucketID": 0,
"issueName": "",
"issueDescription": "",
"weather": "",
"humidity": 0,
"temperature": 0,
"status": 0,
"issueUserID": 0,
"completedAt": "",
}
tip

success status: 201

Update Issue

curl -X PUT "https://${baseUrl}/issue/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d @issue.json
info
issue.json
{
"planTypeID": 0,
"userID": 0,
"bucketID": 0,
"issueName": "",
"issueDescription": "",
"weather": "",
"humidity": 0,
"temperature": 0,
"status": 0,
"issueUserID": 0,
"completedAt": "",
}

Update Issue Partial

curl -X PATCH "https://${baseUrl}/issue/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Attrs: planTypeID,userID,bucketID,issueName,issueDescription,weather,humidity,temperature,status,issueUserID,completedAt" \
-d @issue.json
info
issue.json
{
"planTypeID": 0,
"userID": 0,
"bucketID": 0,
"issueName": "",
"issueDescription": "",
"weather": "",
"humidity": 0,
"temperature": 0,
"status": 0,
"issueUserID": 0,
"completedAt": "",
}

Update Issue Status

curl -X PATCH "https://${baseUrl}/issue/${id}/status/" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d @issue.json
info
issue.json
{
"status": 0
}

Destroy Issue

curl -X DELETE "https://${baseUrl}/issue/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"