ソースを参照

Merge pull request #195 from overleaf/sk-add-curl-to-readme

In example request, show example using curl
Shane Kilkelly 6 年 前
親
コミット
820f4571c5
1 ファイル変更、6 行追加、0 行削除
  1. 6 0
      services/clsi/README.md

+ 6 - 0
services/clsi/README.md

@@ -89,6 +89,12 @@ 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.