A basic REST API used for training sessions.
| Route | Description |
|---|---|
| GET / | Get server info |
| GET /api/reset | Reset server data |
| GET /api/logs | Get server request logs |
| GET /api/cellars | Get the list of existings cellars |
| POST /api/cellars | Create a new cellar, ex: { name: 'name' } |
| GET /api/cellars/:id | Get the detail of an existing cellar |
| DELETE /api/cellars/:id | Remove a cellar |
| GET /api/cellars/:id/bottles | Get the bottles of an existing cellar |
| POST /api/cellars/:id/bottles | Add a new bottle to a cellar, ex: { name: 'name', price: 10 } |
| DELETE /api/cellars/:id/bottles/:bottleId | Remove a bottle |