Suppose I have Task and TimePeriod. TimePeriod represents the time I have worked on the task using start_time and end_time fields.
I would like for Task to support Starting/Stopping the task. Start will create a new TimePeriod with the current time. Stop will add end_time to the last TimePeriod.
I was thinking the REST URL will be like this: PUT /tasks/1011?do=start PUT /tasks/1011?do=stop
or maybe PUT /tasks/1011/start PUT /tasks/1011/stop
What is the proper way to make this REST style?