A JWT Record is required for this resource


Get Judge Record


GET /judge/record/{record_id}

Example

curl -H "Authorization:eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJleHAiOjE2MzQwMTg4NjI3NDB9.dnFnMq3giXDyeUEtAO0l5kkFaSCvT42mNhP_fk8v87k" \\
<https://vojapi.crarch.hitsz.org/judge/record/60e70da500c908a7009c74b1>

Possible Responses

Success:

{
	"_id":{"$oid":"60e70da500c908a7009c74b1"},
	"user_id":1,
	"question_id":100100,
	"submit_time":1625755045,
	"code":"module top_module(\\n    output a\\n);\\n    assign a=1'b1;\\n\\nendmodule\\n\\n",
	"success":true,
	"test_bench":{
		"1":"",
		"0":"" //empty represents passing
		}
}

Wrong Answer:

{
	"_id":{"$oid":"60e70eb700c908a7009c74b2"},
	"user_id":1,
	"question_id":100100,
	"submit_time":1625755319,
	"code":"module top_module(\\n    output a\\n);\\n    assign a=1'b0;\\n\\nendmodule\\n\\n",
	"success":false,
	"test_bench":{
		"1":"",//empty represents passing
		"0":{"head":{"tock":1},
			"signal":[
				{"name":"a","wave":"0.................."},
				{"name":"mismatch","wave":"x1................."},
				{"name":"ref_a","wave":"1.................."}
			]
		}
	}
}

Compile Error:

{
	"_id":{"$oid":"60e70d7800c908a7009c74b0"},
	"user_id":1,
	"question_id":100100,
	"submit_time":1625755000,
	"code":"module top_module(\\n    output a,\\n);\\n    assign a=1'b1;\\n\\nendmodule\\n\\n",
	"success":false,
	"test_bench":{"compile_error":"/home/hilaolu/judger/jobs/60e70d7800c908a7009c74b0/code:2: error: Superfluous comma in port declaration list.\\n"}
}

Get Record List