Skip to content

Commit e1e49d2

Browse files
committed
Added json format to lab
1 parent bb15036 commit e1e49d2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lab/README.md

+1
Original file line numberDiff line numberDiff 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.

lab/test_counter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
Requirements 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.

0 commit comments

Comments
 (0)