Here is one of the options. Extract the task as follows:
GET /task/1011
Then, to start the task, do a POST so
POST /ActiveTasks
and complete the task
POST /InactiveTasks
In fact, it doesn't matter what the URIs look like if you use the following view for the task resource:
<Task> <Description>Do some stuff</Description> <Status>Active</Status> <Link rel="end" Method="POST" href="/InactiveTasks"/> </Task>
or
<Task> <Description>Do some stuff</Description> <Status>InActive</Status> <Link rel="start" Method="POST" href="/ActiveTasks"/> </Task>
Please note that only one of the links will be available at any time, depending on whether this task is currently active.
source share