bulatzi/segfault-wizards

Suggestion for EditUser end point

Closed this issue · 2 comments

Currently, the EditUser endpoint uses the EUID that is passed in to identify the corresponding user in the database and alter their details; as a result, only the first and last name can be changed. Supplying a incorrect, or invalid EUID also crash the whole server rather than returning invalid request. Suggestions:

Old:

{
  "firstName": "string",
  "lastName": "string",
  "euid": "string"
}

New:

{
  "firstName": "string",
  "lastName": "string",
  "euid": "string", //Use to find the user
  "newEuid": "string" //Use to change EUID
}

Added the ability to edit EUID. null and invalid entry handling is being done this sprint.