a gRPC API to execute code remotely and return output/error.
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/FLt4jxHJargs
: 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": ""
}
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": ""
}