Closed jypma closed 3 years ago
The GET resource is there, and serves up manually-inserted database content.
GET
We need to extend on this a bit:
POST /values
key
value
PUT /values/42
I think the new methods in DemoRepository can be rewritten in a more functional style.
Methods have been added now.
The
GET
resource is there, and serves up manually-inserted database content.We need to extend on this a bit:
POST /values
, with a JSON body having akey
andvalue
, returning a 201 Created and a Location headerPUT /values/42
, with the same JSON body structure, to replace an earlier value.