Skip to content

run-api s a REST api for running untrusted code inside docker containers.

Notifications You must be signed in to change notification settings

senicko/run-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

run-api

Run api allows to execute code inside docker containers.

Usage

POST /run

Desc

Executes the code inside docker container.

Request

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) }"
        }
    ]
}

About

run-api s a REST api for running untrusted code inside docker containers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages