A JWT token is required for this resource
POST /judge
Data
{
"question_id":NumberInt(1001),
"code":String,
}
Example
curl -X POST \\
--data '@data' \\
-H "Authorization:eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJleHAiOjE2MzQwMTg4NjI3NDB9.dnFnMq3giXDyeUEtAO0l5kkFaSCvT42mNhP_fk8v87k" \\
-H "Content-Type: application/json" \\
-i <https://vojapi.crarch.hitsz.org/judge>
data
{
"question_id":100100,
"code":"module top_module(\\n output a,\\n);\\n assign a=1'b1;\\n\\nendmodule\\n\\n"
}
Response
{
"_id":{"$oid":"60e70d7800c908a7009c74b0"}
}