- Long userId
- String firstName
- String lastName
- String adress
- String email
Returns a list of all Users
Returns the user with 'userId' as Id. If the user is not found, the Request returns with status 404.
Saves an user. The requires attributes are:
- String firstName
- String lastName
- String adress
- String email
the userId is assigned by the backend. Returns the newly saved user inclusive its userId.
Enrolls the user with the id 'userId' in to the course with 'courseId' as Id. Returns an object of the type CourseEnrolledUser: {"userId": userId, "courseId": courseId}
Assigns the user with the id 'userId' to the group with 'groupId' as Id. Returns an object of the type GroupAssignedUser: {"userId": userId, "groupId": groupId}
Updates the user with 'userId' as Id.
This request requires a body. Optional attrubutes are:
- String firstName
- String lastName
- String adress
- String email
Returns the updated user.
Deletes the user with 'userId' as id. Returns an empty response.