Skip to content
halida edited this page Mar 2, 2013 · 7 revisions

This is the tester api for run tests.

Get New Solution Test

TOKEN is the secret to identify tester authority. current is asdfrewq.

POST http://$SERVER/solutions/tester_get?token=$TOKEN

result:

{
    code: "...", // source code
    language: "..", // python/java/...
    input: "...", // stdin
    output: "...", // expected stdout
    solution_token: "...", // used to identify solution
}

If here is no solution need to be tested, result is {}.

Post New Solution Result

POST http://$SERVER/solutions/tester_set?token=$TOKEN

Send form data: solution_token, status, result.

Clone this wiki locally