Question: In your application you need to let users perforn the following operations on tasks: ( 1 ) create , read,update,delete; ( 2 ) describe; (

In your application you need to let users perforn the following operations on tasks:(1)create,read,update,delete;(2)describe;(3)get all;(4)describe all.----Requirements-----1.Create one:.Request.URL:/task.Method:POST.Payload(example):{"title":"Task1","description":"Some description"}.Response.Status:200.Body(example)13.Comments.Duringcreation you can only set the title and description of a Task.Response body is the id of the newly created Task2.Read One:.Request.URL:/task/{id}.Method:GET.Response.Scenario1:Task found.Status:200.Body(example):{"id":"1","title":"Task1","description":"Some description","status":"CREATED"}.Scenario2:Task Not found.Status:2043.Update One:.Request.URL:/task/{id}.Method:PUT.Payload(example):{"title":"Task1.1","description":"New description","status":"BLOCKED"}.Response.Scenario1:Task found.Status:200.Scenario2:Task not found.Status:204.Scenario3:Invalid status given.Status:200.Body:Available statuses are: CREATED,APPROVAL,REJECTED,BLOCKED,DONE.Additional requirements:.Payload does not have to contain values for all fields.Modify only those that are different from null.4.Delete One:.Request.URL:/task/{id}.Method:DELETE.Response.Scenario1:Task found.Status:200.Scenario2:Task not found.Status:2045.Describe one:.Request.URL:/task/describe/{id}.Method:GET.Response.Scenario1:Task found.Status:200.Body(example):["Description of Task[13:Name]is:Some description"].Scenario2:Task not found.Status:200.Body(example):[""Task with id=13does not exist"]6.Find all tasks:.Request.URL:/tasks.Method:GET.Response.Status:200.Body(example):[{"id":"1","title":"Task1","description":"Some description","status":"CREATED"},{"id":"2","title":"Task2","description":"Another description","status":"CREATED"}]7.Describe all tasks:.Request.URL:/tasks/describe.Method:GET.Response.Status:200.Body(example):["Description of Task[1:Task1]is:Some description","Description of Task[2:Task2]is:Another description"]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!