Skip to content

Add additional GET endpoints to user service

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