{"endpoints":{"GET /api":{"description":"Serves up a json representation of all the available endpoints of the api"},"POST /api/users/registration":{"description":"Creates a new user in the database, hashing a plain text password.","example payload":{"username":"Jersey","email":"jersey@gmail.com","password":"password123"},"example response":201},"POST /api/users/login":{"description":"Authenticates user details sent in payload.","example payload":{"email":"jersey@gmail.com","plainTextPassword":"password123"},"example Response":200},"GET /api/users/:id":{"description":"Server responds with requested user's username and email.","example response":{"username":"Jersey","email":"jersey@gmail.com"}},"DELETE /api/users/:id":{"description":"Server removes the record with matching id if requester has valid authorisaion","example response":204}}}