sshwy / yaoj-custom-judge-demo

Repository from Github https://github.comsshwy/yaoj-custom-judge-demoRepository from Github https://github.comsshwy/yaoj-custom-judge-demo

Yaoj Custom Judge Demo

api list:

Route Description
/ welcome message
/jsonrpc json RPC route
/files?name={name}&ext={ext} upload files

e. g.

curl -i -X GET \
 'http://localhost:3000'

curl -i -X POST \
   -H "Content-Type:text/x-csrc" \
   -T "./a.in" \
 'http://localhost:3000/files?name=test.in'

curl -i -X POST \
   -H "Content-Type:application/json" \
   -d \
'{
  "jsonrpc":"2.0",
  "method":"JudgeService.CustomTest",
  "params":[
     { "src": "test.c", "input": "test.in" }
  ],
  "id": 1
}' \
 'http://localhost:3000/jsonrpc'

About


Languages

Language:Go 100.0%