Run api allows to execute code inside docker containers.
POST /run
Executes the code inside docker container.
Example request that prints text passed with stdin.
{
"config": {
"language": "golang"
},
"stdin": "test",
"files": [
{
"name": "main.go",
"body": "package main \n import (\n \"fmt\" \n \"bufio\" \n \"os\" \n ) \n func main() { reader := bufio.NewReader(os.Stdin) \n name, _ := reader.ReadString('\\n') \n fmt.Println(name) }"
}
]
}