{ "swagger":"2.0", "info":{ "version":"1.0.0", "title":"API Explorer for the Remote Code Executor", "description":"API Sandbox for you to familiarize yourself with the API of this server", "license":{ "name":"MIT", "url":"https://opensource.org/licenses/MIT" } }, "host":"localhost:3001", "basePath":"/", "schemes":[ "http" ], "consumes":[ "application/json" ], "produces":[ "application/json" ], "paths":{ "/codeUpload":{ "get":{ "tags":[ "codeUpload" ], "summary":"Check Health of the API and working status of the server", "responses":{ "200":{ "description":"OK", "schema":{ "$ref":"#/definitions/Health" } } } }, "post":{ "tags":[ "codeUpload" ], "parameters":[ { "name":"Input Body", "in":"body", "description":"The Body of the Request", "schema":{ "$ref":"#/definitions/Code" } } ], "summary":"Post the Language, the Code and the Input at this endpoint", "responses":{ "200":{ "description":"OK", "schema":{ "$ref":"#/definitions/Response" } } } } } }, "definitions":{ "Response":{ "properties":{ "stdout":{ "type":"string" }, "stderr":{ "type":"string" } } }, "Health":{ "properties":{ "APIWorking":{ "type":"boolean", "default":true } } }, "Code":{ "properties":{ "langid":{ "type":"integer", "default":2 }, "code":{ "type":"string" }, "input":{ "type":"string" } } } } }