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
- 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
Endpoint | Method | Body | Description |
---|---|---|---|
/run | POST | language : "<PROGRAMMING LANGUAGE>" content : "<CODE TO EXECUTE>" | Execute code given a language. |
/debug | POST | language : "<PROGRAMMING LANGUAGE>" content : "<CODE TO DEBUG>" | Debug code given a language. Start at line 0. |
/debug/stepin | GET | Execute debug step-in functionality | |
/debug/stepout | GET | Execute debug step-in functionality | |
/debug/stepover | GET | Execute debug step-over functionality | |
/debug/continue | GET | Execute debug continue functionality | |
/debug/setbreakpoint/{lineNo} | GET | lineNo (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