From aaa0681c39df87c5c97bc2468a125dced0efa663 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Tue, 27 Oct 2020 15:53:10 +0000 Subject: [PATCH 1/2] 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. --- services/clsi/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/services/clsi/README.md b/services/clsi/README.md index 5ae02a866d..492f2fdb6b 100644 --- a/services/clsi/README.md +++ b/services/clsi/README.md @@ -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//compile +``` + 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. + #### Example Response ```javascript From fcc52cb1a0b27c6127956a5adf540bd1d4bef9b3 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Tue, 27 Oct 2020 16:17:22 +0000 Subject: [PATCH 2/2] No more blank line --- services/clsi/README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/services/clsi/README.md b/services/clsi/README.md index 492f2fdb6b..02cd0a470f 100644 --- a/services/clsi/README.md +++ b/services/clsi/README.md @@ -98,7 +98,6 @@ $ curl -X POST -d @data.json localhost:3013/project//compile 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. - #### Example Response ```javascript