NickA02 / SOTestingEnv

This project aims to create a web-based coding platform specifically tailored for Science Olympiad programming events.
2 stars 0 forks source link

Question submission #63

Closed NickA02 closed 2 days ago

NickA02 commented 3 days ago

Question Submission

Hello everyone. This is the API Endpoint for submission handling and Judge0 connection!

There is one new route: POST submissions/submit

The request takes in the user token header as usual, alongside a JSON Submission, of the form

{
  "file_contents": "string",
  "question_num": "string"
}

and returns a ConsoleLog Json of the following form.

{
  "console_log": "string"
}

This API Route is only accessible for users with active tests.

Important Proposition

Also, I propose that from now on we have to include a lil joke in each PR... Here's mine:

Why do space shuttles rely on Unix? you can’t open Windows in space

ItIsAndrewL commented 3 days ago

Agreed on the joke haha