Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 364830

Summary: [server][progress service] Create REST api for tasks
Product: [ECD] Orion Reporter: Malgorzata Janczarska <malgorzata.tomczyk>
Component: ServerAssignee: Malgorzata Janczarska <malgorzata.tomczyk>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 0.2   
Target Milestone: 0.4 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on:    
Bug Blocks: 344148, 364987    

Description Malgorzata Janczarska CLA 2011-11-25 07:47:32 EST
Currently we have a servlet on /task. Only information we can get from is task details from /task/<task id>
What we need for the new progress service is:
* get the tasks list
* remove completed tasks
* cancel running task
* remove one task from the list of tasks
Comment 1 Malgorzata Janczarska CLA 2011-11-28 12:34:03 EST
API:

GET /task - return a list of tasks for current user
GET /task/id/<taskid> - return task status
PUT /task/id/<taskid> put data: "Cancel: true" - cancel running task
DELETE /task/id/<taskid> - remove task (success only if completed)
DELETE /task - remove all completed tasks
Comment 2 Malgorzata Janczarska CLA 2011-11-28 12:39:16 EST
This API is implemented, now I need to consume it on the client site.