Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364830 - [server][progress service] Create REST api for tasks
Summary: [server][progress service] Create REST api for tasks
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Server (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: 0.4 M1   Edit
Assignee: Malgorzata Janczarska CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 344148 364987
  Show dependency tree
 
Reported: 2011-11-25 07:47 EST by Malgorzata Janczarska CLA
Modified: 2011-11-28 12:52 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.