Skip to content

Add user rest endpoint

Alex requested to merge user-controller-endpoints into master

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))

Merge request reports