Add users endpoints with queries

This commit is contained in:
2019-08-01 09:42:25 +02:00
parent d97221e522
commit ccc7a0bfb0
5 changed files with 67 additions and 0 deletions
+1
View File
@@ -53,6 +53,7 @@ Sleep Tracker is intended for anyone interested in improving their sleep and hea
- `GET /api/users/:id` - fetch a user
- `PUT /api/users/:id` - update a user
- `DELETE /api/users/:id` - delete a user
- `GET /api/users/:id/sessions` - fetch list of all sessions by user id
- `POST /api/users/:id/sessions` - add a session by user id