|
|
|
|
122
|
|
122
|
|
123
|
```
|
123
|
```
|
124
|
$ curl "http://127.0.0.1:8080/hello/michel/age/17"
|
124
|
$ curl "http://127.0.0.1:8080/hello/michel/age/17"
|
125
|
-# {"name": "damien", "greetings": "Hello damien, it looks like you are 17", "now": "2017-12-18T12:41:58.229679+00:00"}
|
|
|
|
|
125
|
+# {"name": "damien", "greetings": "Hello damien, it looks like you are 17", "now": "2017-12-18T12:41:58.229679+00:00"}
|
126
|
```
|
126
|
```
|
127
|
|
127
|
|
128
|
Error case (returns a 400):
|
128
|
Error case (returns a 400):
|
|
|
|
|
168
|
- managing output schema
|
168
|
- managing output schema
|
169
|
- management of error cases (404, 500, etc)
|
169
|
- management of error cases (404, 500, etc)
|
170
|
- nice exception handling
|
170
|
- nice exception handling
|
171
|
-- automatic dict/object serialization
|
|
|
|
|
171
|
+- automatic dict/object serialization
|