File tree 2 files changed +2
-1
lines changed
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
8
8
9
9
- The API must be RESTful.
10
10
- The endpoint must be called ` /counters ` .
11
+ - The data returned should be this ` {"name":"some_name", "counter":0} `
11
12
- When creating a counter, you must specify the name in the path.
12
13
- Duplicate names must return a conflict error code.
13
14
- The service must be able to update a counter by name.
Original file line number Diff line number Diff line change 4
4
Requirements for the counter service
5
5
- The API must be RESTful.
6
6
- The endpoint must be called `/counters`.
7
+ - The data returned should be this {"name":"some_name", "counter":0}
7
8
- When creating a counter, you must specify the name in the path.
8
- - The data returned should be this {"name":"some_name", "counter:0}
9
9
- Duplicate names must return a 409 conflict error code.
10
10
- The service must be able to update a counter by name.
11
11
- The service must be able to get a counter's current value.
You can’t perform that action at this time.
0 commit comments