-
Notifications
You must be signed in to change notification settings - Fork 32
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
API key validation requirements #327
Comments
@spMohanty please confirm or correct when you have time. |
yeah the challenge_config would be beneficial. Also, in the For now the rest of the stuff looks great, and we can go ahead with it. 👍 |
Regarding teams: #325 As a team has it's own API key, then the user can either submit as an individual using their own key or under the team key. A team key is treated as a participant key, and in effect, the results are stored against the team leader's account. |
Linked issue #272 |
TODO - need to discuss the passing of the S3 key / url @spMohanty let's discuss next week. |
Ready |
Implemented. |
Transferred from Slack
There are three calls needed for the grader.
GET - /api/external_graders/dev_api_key - individual developer
auth: organizer API key OR crowdAI API key
params: dev_api_key
returns: participant_id + 200
GET - /api/external_graders/dev_api_key - team member
auth: organizer API key OR crowdAI API key
params: team_api_key
returns: team leader participant_id + 200
POST - /api/external_graders/
auth: organizer API key
params:
returns:
PATCH - /api/external_graders/
auth: organizer API key
When a submission is regraded the original created_at date is considered. #332
(media fields: they are all populated or none are populated - otherwise there will be an error)
returns:
Error messages
Aside from the HTTP status, there will be a message if there is an error:
"HTTP Token: Access denied."
"The API key did not match any participant record."
"The Challenge Client Name string did not match any challenge."
"Grading status must be one of (graded|failed)"
"Submission ID is invalid."
"The participant has no submission slots remaining for today."
"Grading message must be provided if grading = failed"
The text was updated successfully, but these errors were encountered: