Skip to content
Snippets Groups Projects

Add additional GET endpoints to user service

Merged Kirby, Matt J (UG - Comp Sci & Elec Eng) requested to merge user-enpoints into main

What does this MR do?

Adds the following endpoints to the user service

  • GET /api/userlist with the parameter 'userIdList' to return user details of a list of users.
  • GET /api/search with parameter 'query' to return a list of users whose name or id begins with the query

Neither of these endpoints return password or email fields. (Ignore them in the screenshots cause i cba)

Relevant screenshots

userList image image

search (invalid) image image

search (username matches) image image

search (lastname matches) image image

Testing

  • Ensure the services (user / user-mongo) are uncommented in the docker compose
  • Docker compose up --build
  • As screenshots

Relevant issues

(List the relevant issues, i.e. Closes #...)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading