Categorygithub.com/Deepok101/coderunners
modulepackage
0.0.0-20211021000854-e9b8ef13a810
Repository: https://github.com/deepok101/coderunners.git
Documentation: pkg.go.dev

# README

coderunners

CodeRunners is an API allowing users to debug and run code via HTTP requests.

Currently, it only supports Python.

Setup

  1. Run go run main.go to start the CodeRunners API.

You can now run queries through the localhost:80 base url.

Endpoint Documentation

All queries will have a json body. Make sure to set the content-type of all queries as application/json

EndpointMethodBodyDescription
/runPOSTlanguage : "<PROGRAMMING LANGUAGE>"
content : "<CODE TO EXECUTE>"
Execute code given a language.
/debugPOSTlanguage : "<PROGRAMMING LANGUAGE>"
content : "<CODE TO DEBUG>"
Debug code given a language. Start at line 0.
/debug/stepinGETExecute debug step-in functionality
/debug/stepoutGETExecute debug step-in functionality
/debug/stepoverGETExecute debug step-over functionality
/debug/continueGETExecute debug continue functionality
/debug/setbreakpoint/{lineNo}GETlineNo (Query Parameter) : <CODE LINE NUMBER>Add a breakpoint to a specific line.

If you want more information on what step-in, step-over and continue debug functionalities do, click here

# Packages

No description provided by the author
No description provided by the author