GET /users/:userID
Retrieves information about a user, given a user ID.
- A JWT for a registered user must be supplied in the Authorization field of the request header.
- The token must be supplied in the format
JWT 'token'
- userID: ObjectID (required)
- Code: 200 OK
- Content: A success flag and an a User object
- 400 Bad Request – userID not of type ObjectID
- 401 Unauthorized – no/invalid JWT provided
- 404 Not Found – user does not exist