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

Api improvements #373

Draft
wants to merge 32 commits into
base: master
Choose a base branch
from
Draft

Conversation

matihope
Copy link
Contributor

@matihope matihope commented Apr 24, 2024

This is a draft PR showcasing current functionality implemented in the API. In terms of problems it allows for:

  • listing contests
  • listing problems in a contest
  • getting details about a problem in a contest
  • submitting a solution to a problem in a contest (This was already implemented)

Currently, yet to be implemented is querying a submission list, a ranking, writing tests and request limitation.


VSCode Extension

This issue is being worked on in parallel with a VSCode extension, that already allows to submit solutions right from the editor. What a time to be alive!

@MasloMaslane
Copy link
Member

I have a concern: if there is an onsite contest with ip authentication enabled is it possible to submit as someone else with their api key?

@MasloMaslane
Copy link
Member

Probably all API endpoints should check (maybe with permission_classes?) whether ip authentication is enabled if so, check if the participant is making requests from correct ip

@matihope
Copy link
Contributor Author

I have a concern: if there is an onsite contest with ip authentication enabled is it possible to submit as someone else with their api key?

This is not something related to this issue, as we have not changed anything about submission endpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants