Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make endpoint for groups #3

Open
cjchirag7 opened this issue Aug 4, 2019 · 3 comments
Open

Make endpoint for groups #3

cjchirag7 opened this issue Aug 4, 2019 · 3 comments

Comments

@cjchirag7
Copy link
Contributor

No description provided.

@cjchirag7 cjchirag7 changed the title Make endpoints for groups Make endpoint for groups Aug 4, 2019
@nveenjain
Copy link
Member

Please describe the issue.
What you plan to achieve and also post the relevant wireframe if possible.

@cjchirag7
Copy link
Contributor Author

Manage-groups-group
Manage-groups-empty
Manage-groups-create a new group
Manage-groups

Firstly, I plan to create a schema for the MYSQL database for GROUPS

Secondly, I plan to create an API to handle various requests on the 'groups' endpoint.
Performing a get request on Groups by a user will return all the groups to which the user belongs.
If the user is an admin, then only he will be allowed to create a Group (through POST request) in which he will be an admin. He can also make another user belonging to that group as admin. Doing this will allow the new admin also to add other users in the group.
If the user (admin) sends a PUT request to a group, he can edit the name of group.
If he (admin) sends a DELETE request at 'groups/{groupId}/users/{userId}', the user with {userId} if belongs to that particular group with group ID {groupId} will be removed.

@nveenjain
Copy link
Member

Also create delete group endpoint.
1 additional requirement can be just of adding those members which belong to a particular branch, and particular semester.

@nveenjain nveenjain added this to the Online Judge version 1 milestone Aug 6, 2019
@cjchirag7 cjchirag7 removed their assignment Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants