{"about":"The solution of this challenge, compiled and answering. Compare the status codes and the shape of the responses with yours. The data is in memory and shared by everybody: it goes back to this state whenever the demo restarts.","demo":"class 02 — the catalogue service of the challenge","note":"A POST needs Content-Type: application/json and a body with reference (ABC-123), name, price and supplier. The commands are in the brief.","try":[{"answers":"200, the health endpoint","method":"GET","url":"/class02/health"},{"answers":"200, the list of items","method":"GET","url":"/class02/items"},{"answers":"200, one item","method":"GET","url":"/class02/items/1"},{"answers":"404, an item that does not exist","method":"GET","url":"/class02/items/999"},{"answers":"201 with the Location of the new item, or 422 naming the invalid field","method":"POST","url":"/class02/items"}]}