sio2project / oioioi

GNU General Public License v3.0
161 stars 72 forks source link

Api improvements #373

Open matihope opened 5 months ago

matihope commented 5 months ago

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

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 commented 5 months ago

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 commented 5 months ago

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 commented 4 months ago

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.