mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
In example request, show example using curl
This clarifies the exact way to construct this request. It seems that some users have taken the existing documentation to mean that the request should be sent from the browser, to the web server. This example clarifies how to send this compile request directly to the clsi server.
This commit is contained in:
parent
20a0f3bcd1
commit
aaa0681c39
1 changed files with 7 additions and 0 deletions
|
@ -89,9 +89,16 @@ The CLSI is based on a JSON API.
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
With `curl`, if you place the above json in a file called `data.json`, the request would look like this:
|
||||||
|
|
||||||
|
``` shell
|
||||||
|
$ curl -X POST -d @data.json localhost:3013/project/<id>/compile
|
||||||
|
```
|
||||||
|
|
||||||
You can specify any project-id in the URL, and the files and LaTeX environment will be persisted between requests.
|
You can specify any project-id in the URL, and the files and LaTeX environment will be persisted between requests.
|
||||||
URLs will be downloaded and cached until provided with a more recent modified date.
|
URLs will be downloaded and cached until provided with a more recent modified date.
|
||||||
|
|
||||||
|
|
||||||
#### Example Response
|
#### Example Response
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
|
|
Loading…
Reference in a new issue