Closed Mohido closed 2 years ago
Enhanced the assign to group endpoint groups/assign. The new endpoint allows the client to provide any of the combinations that specify a user and a group. For instance: user can be defined by its userID or neptun. E.G:
groups/assign
/groups/assign [PUT] body: userID || neptun, groupID || groupName
/groups/assign
userID || neptun, groupID || groupName
if both entries that define a single entity are given (userID and neptun), userID is prioritized. The same logic applies to groups.
NOTE: The same logic applies for groups/unassign endpoint as well.
groups/unassign
Furthermore, fixed a bug in users/ [GET] endpoint.
users/
Enhanced the assign to group endpoint
groups/assign
. The new endpoint allows the client to provide any of the combinations that specify a user and a group. For instance: user can be defined by its userID or neptun. E.G:/groups/assign
[PUT] body:userID || neptun, groupID || groupName
if both entries that define a single entity are given (userID and neptun), userID is prioritized. The same logic applies to groups.
NOTE: The same logic applies for
groups/unassign
endpoint as well.Furthermore, fixed a bug in
users/
[GET] endpoint.