Skip to content

faraazahmad/online-judge-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Online judge API

a gRPC API to execute code remotely and return output/error.

Currently supported languages

1. Ruby

Request format

endpoint: /ruby
method: GET

The server requires three components from the client request.

  • url : A URL where the code is stored in raw format. For example , https://pastebin.com/raw/FLt4jxHJ
  • args: Arguments to be passed to the interpreter for running the code. For example, -a, -c etc.
  • stdin: The input to be provided to the code (including newlines).

body:

{
    "url": "",
    "args": "",
    "stdin": ""
}

Response format

If the response has HTTP status 200 (OK), the response will have the following body

{
    "result": ""
}

else the response will have HTTP status 500 (Internal server error) and the following body

{
    "error": ""
}

About

A gRPC API for a prototype online judge

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages