File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ Assume you have been asked to create a web service that can keep track of multip
88
99- The API must be RESTful.
1010- The endpoint must be called ` /counters ` .
11+ - The data returned should be this ` {"name":"some_name", "counter":0} `
1112- When creating a counter, you must specify the name in the path.
1213- Duplicate names must return a conflict error code.
1314- The service must be able to update a counter by name.
Original file line number Diff line number Diff line change 44Requirements for the counter service
55- The API must be RESTful.
66- The endpoint must be called `/counters`.
7+ - The data returned should be this {"name":"some_name", "counter":0}
78- When creating a counter, you must specify the name in the path.
8- - The data returned should be this {"name":"some_name", "counter:0}
99- Duplicate names must return a 409 conflict error code.
1010- The service must be able to update a counter by name.
1111- The service must be able to get a counter's current value.
You can’t perform that action at this time.
0 commit comments