mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 09:23:52 -05:00
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:
committed by
GitHub
parent
ba6b49b2e9
commit
6b19e59300
10
docs/API.md
10
docs/API.md
@@ -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; }",
|
||||
|
||||
Reference in New Issue
Block a user