Task API
Get Tasks with paginated
Method
GET
Media Type
application/json
URL
http://[server]/dolphin/apiv1/graph/tasks?start=0&count=10
Header
Authorization : Bearer [generatedToken]
Body
Status
200
Response
{ “status”: “success”, “data”: [], “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 0 }
Get Task by Task Id
Method
GET
Media Type
application/json
URL
http://[server]/dolphin/apiv1/graph/tasks/[taskId]
Header
Authorization : Bearer [generatedToken] Task Id : [taskId]
Body
Status
200
Response
{ “status”: “success”, “data”: { “id”: “[Id]”, “owner”: “[owner_id]”, “createdDate”: 1598951171230, “createdBy”: “[createdBy]”, “modifiedDate”: 1598952043583, “modifiedBy”: “f1b380ced4477dd87e8d7ad842af7ae2”, “status”: “OnGoing”, “taskName”: “Mira selasa”, “taskDetail”: “Task selasa mira”, “deleted”: false, “dueDate”: 1598951100000, “reminderDate”: 1598958000000, “highPriority”: false, “responsiblePersons”: [ “[responsiblePersons]” ], “participants”: [ “[participants]” ], “observers”: “[ “[observer]” ], “checklists”: [ “{\”checklistDetail\”:\”Comment\”,\”state\”:false}” ], “comments”: [ “7e0262b5cef97058fef56a5bb1b6daac”, “d6663f027e4035ad1d64e39688195f64”, “0fa59391d3f414a022822b981ff0cc90”, “932265a29d24d27d9a08c6437744cb6c”, “362c0c43b60393430ba4200d1e194ac1”, “d1706017679c16fc5117a2d3c5b4b686”, “1ec212282fb66aa3c18d4dcac27df243” ], “startDate”: 1598951177793 }, “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 0 }
Add Task
Method
POST
Media Type
application/json
URL
http://[server]/ dolphin/apiv1/graph/tasks/add
Header
Authorization : Bearer [generatedToken]
Body
{ “taskName”: “{task_name}”, “responsiblePersons”: [ “[responsiblePersons]” ] }
Status
200
Response
{ “status”: “success”, “data”: { “id”: “[Id]”, “owner”: “[owner_id]”, “createdDate”: 1598953966455, “createdBy”: “[createdBy]”, “modifiedDate”: 1598953966455, “modifiedBy”: “95bbbf64882dd7816c09996d56bbc1e2”, “status”: “NotStarted”, “taskName”: “Create Task”, “deleted”: false, “responsiblePersons”: [ “[responsiblePerson]” ] }, “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 0 }
Edit Task
Method
PUT
Media Type
application/json
URL
http://[server]/ dolphin/apiv1/graph/tasks/edit
Header
Authorization : Bearer [generatedToken]
Body
{ “id”: “[taskId]”, “status”: “[statusTask]”, “taskName”: “[taskName]”, “deleted”: false, “dueDate”: 202009021057, “highPriority”: false, “responsiblePersons”: [ “[responsiblePersons]” ] }
Status
200
Response
{ “status”: “success”, “data”: { “id”: “[Id]”, “owner”: “[owner_id]”, “createdDate”: 1598951171230, “createdBy”: “b64283b4d0ee8b67086a16398a261790”, “modifiedDate”: 1598955287024, “modifiedBy”: “95bbbf64882dd7816c09996d56bbc1e2”, “status”: “OnGoing”, “taskName”: “Mira selasa”, “taskDetail”: “Task selasa mira”, “deleted”: false, “dueDate”: 1598951100000, “reminderDate”: 1598958000000, “highPriority”: false, “responsiblePersons”: [ “[responsiblePerson]” ], “participants”: [ “[participant]” ], “observers”: [ “[observer]” ], “checklists”: [ “{\”checklistDetail\”:\”Comment\”,\”state\”:false}” ], “comments”: [ “7e0262b5cef97058fef56a5bb1b6daac”, “d6663f027e4035ad1d64e39688195f64”, “0fa59391d3f414a022822b981ff0cc90”, “932265a29d24d27d9a08c6437744cb6c”, “362c0c43b60393430ba4200d1e194ac1”, “d1706017679c16fc5117a2d3c5b4b686”, “1ec212282fb66aa3c18d4dcac27df243” ], “startDate”: 1598951177793 }, “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 0 }
Change checklist state
Method
PUT
Media Type
application/json
URL
http://[server]/dolphin/apiv1/graph/tasks/edit/checklist?taskId=[taskId]
Header
Authorization : Bearer [generatedToken] Task Id : [taskId]
Body
[ { “checklistDetail”: “Comment”, “state”: false } ]
Status
200
Response
{ “status”: “success”, “data”: { “id”: “[Id]”, “owner”: “[owner_id]”, “createdDate”: 1598951171230, “createdBy”: “b64283b4d0ee8b67086a16398a261790”, “modifiedDate”: 1598955287024, “modifiedBy”: “95bbbf64882dd7816c09996d56bbc1e2”, “status”: “OnGoing”, “taskName”: “Mira selasa”, “taskDetail”: “Task selasa mira”, “deleted”: false, “dueDate”: 1598951100000, “reminderDate”: 1598958000000, “highPriority”: false, “responsiblePersons”: [ “[responsiblePersons]” ], “participants”: [ “[participants]” ], “observers”: [ “[observers]” ], “checklists”: [   “{\”checklistDetail\”:\”Comment\”,\”state\”:false}” ], “comments”: [ “7e0262b5cef97058fef56a5bb1b6daac”, “d6663f027e4035ad1d64e39688195f64”, “0fa59391d3f414a022822b981ff0cc90”, “932265a29d24d27d9a08c6437744cb6c”, “362c0c43b60393430ba4200d1e194ac1”, “d1706017679c16fc5117a2d3c5b4b686”, “1ec212282fb66aa3c18d4dcac27df243” ], “startDate”: 1598951177793 }, “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 0 }
Delete Task
Method
PUT
Media Type
application/json
URL
http://[server]/dolphin/apiv1/graph/tasks/delete/[taskId]
Header
Authorization : Bearer [generatedToken] Task Id : [taskId]
Body
Status
200
Response
{ “status”: “success”, “data”: “Delete Success”, “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 0 }
Start Task
Method
PUT
Media Type
application/json
URL
http://[server]/dolphin/apiv1/graph/tasks/start/[taskId]
Header
Authorization : Bearer [generatedToken] Task Id : [taskId]
Body
Status
200
Response
{ “status”: “success”, “data”: “Task Started”, “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 0 }
Finish Task
Method
PUT
Media Type
application/json
URL
http://[server]/dolphin/apiv1/graph/tasks/finish/[taskId]
Header
Authorization : Bearer [generatedToken] Task Id : [taskId]
Body
Status
200
Response
{ “status”: “success”, “data”: “Task Finish”, “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 0 }
Get Task For One Month
Method
GET
Media Type
application/json
URL
http://[server]/dolphin/apiv1/graph/tasks/month?startDate={start_date}&endDate={end_date}
Header
Authorization : Bearer [generatedToken] Start Date : [yyyyMMddHHmm] End Date : [yyyyMMddHHmm]
Body
Status
200
Response
{ “status”: “success”, “data”: [ { “id”: “[Id]”, “owner”: “[owner_id]”, “createdDate”: 1598953756538, “createdBy”: “95bbbf64882dd7816c09996d56bbc1e2”, “modifiedDate”: 1598953756538, “modifiedBy”: “95bbbf64882dd7816c09996d56bbc1e2”, “status”: “NotStarted”, “taskName”: “Mira selasa”, “taskDetail”: “Task selasa mira”, “deleted”: false }, { “id”: “[Id]”, “owner”: “[owner_id]”, “createdDate”: 1598953930823, “createdBy”: “95bbbf64882dd7816c09996d56bbc1e2”, “modifiedDate”: 1598953930823, “modifiedBy”: “95bbbf64882dd7816c09996d56bbc1e2”, “status”: “NotStarted”, “taskName”: “Create Task”, “deleted”: false, “responsiblePersons”: [ “[responsiblePersons]” ] }, { “id”: “[Id]”, “owner”: “[owner_id]”, “createdDate”: 1598953962856, “createdBy”: “95bbbf64882dd7816c09996d56bbc1e2”, “modifiedDate”: 1598953962856, “modifiedBy”: “95bbbf64882dd7816c09996d56bbc1e2”, “status”: “NotStarted”, “taskName”: “Create Task”, “deleted”: false, “responsiblePersons”: [ “[responsiblePersons]” ] }, { “id”: “[Id]”, “owner”: “[owner_id]”, “createdDate”: 1598953966455, “createdBy”: “95bbbf64882dd7816c09996d56bbc1e2”, “modifiedDate”: 1598953966455, “modifiedBy”: “95bbbf64882dd7816c09996d56bbc1e2”, “status”: “NotStarted”, “taskName”: “Create Task”, “deleted”: false, “responsiblePersons”: [ “[responsiblePersons]” ] } ], “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 0 }
Get Comment by Task Id
Method
GET
Media Type
application/json
URL
http://[server]/dolphin/apiv1/graph/tasks/comment/[taskId]?start=0&count=10
Header
Authorization : Bearer [generatedToken] Task Id : [taskId]
Body
Status
200
Response
{ “status”: “success”, “data”: [ { “id”: “[Id]”, “owner”: “[owner_id]”, “createdDate”: 1598936955162, “createdBy”: “aae88eb1ccfa27d99b655f4643e6a615”, “modifiedDate”: 1598936955162, “modifiedBy”: “aae88eb1ccfa27d99b655f4643e6a615”, “taskId”: “[taskId]”, “comment”: “Sfjaj”, “userId”: “[userId]” }, { “id”: “[Id]”, “owner”: “[owner_id]”, “createdDate”: 1598937067905, “createdBy”: “aae88eb1ccfa27d99b655f4643e6a615”, “modifiedDate”: 1598937067905, “modifiedBy”: “aae88eb1ccfa27d99b655f4643e6a615”, “taskId”: “[taskId]”, “comment”: “vznnz”, “userId”: “[userId]” }, { “id”: “[Id]”, “owner”: “[owner_id]”, “createdDate”: 1598937073575, “createdBy”: “aae88eb1ccfa27d99b655f4643e6a615”, “modifiedDate”: 1598937073575, “modifiedBy”: “aae88eb1ccfa27d99b655f4643e6a615”, “taskId”: “[taskId]”, “comment”: “sgks”, “userId”: “[userId]” } ], “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 3 }
Add Comment to Task
Method
POST
Media Type
application/json
URL
http://[server]/dolphin/apiv1/graph/tasks/comment/add/[taskId]
Header
Authorization : Bearer [generatedToken] Task Id : [taskId]
Body
{ “comment”: “Hallo” }
Status
200
Response
{ “status”: “success”, “data”: “Comment Added”, “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 0 }
Edit Comment
Method
PUT
Media Type
application/json
URL
http://[server]/dolphin/apiv1/graph/tasks/comment/edit
Header
Authorization : Bearer [generatedToken]
Body
{ “id”: “[Id]”, “owner”: “[owner_id]”, “taskId”: “[taskId]”, “comment”: “[comment]”, “userId”: “[userId]” }
Status
200
Response
{ “status”: “success”, “data”: { “id”: “[Id]”, “owner”: “[owner_id]”, “createdDate”: 1598956982140, “createdBy”: “95bbbf64882dd7816c09996d56bbc1e2”, “modifiedDate”: 1598956982140, “modifiedBy”: “95bbbf64882dd7816c09996d56bbc1e2”, “partial”: true, “taskId”: “[taskId]”, “comment”: “contoh edit komentar”, “userId”: “[userId]” }, “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 0 }
Delete Comment
Method
PUT
Media Type
application/json
URL
http://[server]/dolphin/apiv1/graph/tasks/comment/delete/[commentId]?taskId=[taskId]
Header
Authorization : Bearer [generatedToken] Comment Id : [commentId] Task Id : [taskId]
Body
Status
200
Response
{ “status”: “success”, “data”: “Comment deleted”, “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 0 }
Last updated