Issue
Definition
Issue Type
- JSON
- Typescript
- Kotlin
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
- Typescript
- Kotlin
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
- Typescript
- Kotlin
curl -X GET "https://${baseUrl}/issue/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Apply Issue.ID
- Curl
- Typescript
- Kotlin
curl -X POST "https://${baseUrl}/apply/issue/id/" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Create Issue
- Curl
- Typescript
- Kotlin
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
- Typescript
- Kotlin
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
- Typescript
- Kotlin
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
- Typescript
- Kotlin
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
- Typescript
- Kotlin
curl -X DELETE "https://${baseUrl}/issue/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"