Update readme.md

This commit is contained in:
Brian Seymour 2019-06-17 00:09:35 -05:00 committed by GitHub
parent 9fb116caf0
commit 54b7bb9a54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -69,6 +69,11 @@ cd ../tests
- `lxc/execute [language] [file path] [arg]...`
#### API Usage
To use the API, it must first be started. To start the API, run the following:
```
cd api
./start
```
The Piston API exposes one endpoint at `http://127.0.0.1:2000/execute`.
This endpoint takes the following JSON payload and expects at least the language and source. If
source is not provided, a blank file is passed as the source.