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

Add DropStudent endpoint. #58

Merged
merged 3 commits into from
Feb 24, 2022
Merged

Add DropStudent endpoint. #58

merged 3 commits into from
Feb 24, 2022

Conversation

krashanoff
Copy link
Collaborator

@krashanoff krashanoff commented Feb 23, 2022

  • Professors can drop any student.
  • Students can always drop themselves.

POST /class/<class_id>/drop

Drop the student with ID id from your class with ID class_id. Any student can
drop themselves from a class, and a professor can drop anyone from a class except
themselves.

Request Body

{
  "id": "ID"
}

Response Format

No data is returned with this endpoint.

Status Code Semantic
200 OK
400 Bad request (see format)
401 Unauthorized
500 Server error

* Professors can drop any student.
* Students can always drop themselves.
@krashanoff krashanoff added backend Concerning the backend documentation Concerning documentation labels Feb 23, 2022
@krashanoff
Copy link
Collaborator Author

Force-merging this since Cindy is using this behavior already.

@krashanoff krashanoff merged commit 50a10d2 into main Feb 24, 2022
@krashanoff krashanoff deleted the krashanoff/drop-student branch February 24, 2022 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Concerning the backend documentation Concerning documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant