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 reset last submission route information #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions docs/microservices/users.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,23 @@ Appends problemSet to the user's list of problemSets
| 422 | Missing or invalid userId/problemSetId in body |
| 500 | Internal server error |

> PATCH /users/{userId}/resetLastSubmission

Resets the codeforces `lastSubmission` field for a user

**Params**

- `userId`: ID for user to update

**Responses**

| Status | Response |
| --- | --- |
| 200 | User |
| 404 | User not found |
| 422 | Missing or invalid userId |
| 500 | Internal server error |

> PATCH /users/resetLastSubmissions

Resets the codeforces `lastSubmission` field for all users
Expand Down