Add user rest endpoint
What does this MR do?
Adds a GET /user/{id}
api function that returns normalised user data (name, id, photo, sleep status) for a given id. The main purpose is to be able to display user profiles in the apps.
How confident are you it won't break things if deployed?
Very, it's a read-only function and the test works
Links to related issues
Checklist
-
added a test, or explain why one is not needed/possible... -
no unrelated changes -
asked someone for a code review -
joined #foodsharing-beta channel at https://slackin.yunity.org -
added an entry to CHANGELOG.md (description, merge request link, username(s))