Minor improvement to compilation API docs

Removes the `req.body.compiler` fallback when looking for the compiler - It could never be reached
This commit is contained in:
Rubén Rincón Blanco
2020-08-03 15:41:08 +02:00
committed by GitHub
parent ba6b49b2e9
commit 6b19e59300
3 changed files with 9 additions and 6 deletions

View File

@@ -51,9 +51,9 @@ To specify a compilation request as a JSON document, post it as the appropriate
type and send an object of the form:
```JSON
{
"source": "Source to compile",
"source": "<Source-to-compile>",
"options": {
"userArguments": "Compiler flags",
"userArguments": "<Compiler-flags>",
"compilerOptions": {
"skipAsm": false,
"executorRequest": false
@@ -76,11 +76,13 @@ To specify a compilation request as a JSON document, post it as the appropriate
{"id": "range-v3", "version": "trunk"},
{"id": "fmt", "version": "400"}
]
}
},
"lang": "<lang-id (Optional)>",
"allowStoreCodeDebug": true
}
```
Execution Only request:
Execution Only request example:
```JSON
{
"source": "int main () { return 1; }",