Skip to content

Latest commit

 

History

History
47 lines (39 loc) · 1.34 KB

File metadata and controls

47 lines (39 loc) · 1.34 KB

Edit a task

Implement the four components shown in the sequence diagram, in such a way that:

  • an existing task is edited
  • a subsequent request to retrieve tasks returns a non-empty list of tasks, with the newly edited task.

Given the new (partial) details of an existing task below
When I request to update a task via the PUT /tasks/1 endpoint
Then I should get a 204 NO CONTENT HTTP response.

{
    "title": "Contact checkout and customer service",
    "description": "Inform the checkout and the customer service teams about the new version of our API."
}

Once the existing task edited, a request to get all the tasks should return the following:

[
    {
        "id": 1,
        "title": "Contact checkout and customer service",
    "description": "Inform the checkout and the customer service teams about the new version of our API.",
        "completed": false
    },
    {
        "id": 2,
        "title": "Contract phase",
        "description": "Prepare the contract phase of the old API.",
        "completed": false
    },
    {
        "id": 3,
        "title": "Contract tests",
        "description": "Write provider contract tests for the new version of our API.",
        "completed": false
    }
]

Sequence Diagram

Edit a task sequence diagram