ORM - maratona-run-time/maratona-runtime GitHub Wiki
ORM
The Object-relational mapping, a.k.a ORM, will be an API that return the objects information inside the database.
API
Challenge
Get on /challenge/<id>.
Return the challenge with id.
Post on /challenge/.
Create a challenge.
| Parameters | Description | Extra information |
|---|---|---|
| title[string] | The title of the challenge | |
| timeLimit[double] | The time limit of the challenge | |
| memoryLimit[int] | The memory limit of the challenge | |
| inputs[list of files] | The inputs of the challenge | The extension of the file need to be .in and the filename without the extension must also happen in the output |
| outputs[list of files] | The outputs of the challenge | The extension of the file need to be .out and the filename without the extension must also happen in the input |