ELTE-Clean / Clean-Administration-Platform

2 stars 1 forks source link

Assign to Groups Through Neptun ID and Group Names #94

Closed Mohido closed 2 years ago

Mohido commented 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 [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.