[Libreoffice-commits] online.git: Branch 'distro/collabora/milestone-5' - loleaflet/README loolwsd/reference.txt

Miklos Vajna vmiklos at collabora.co.uk
Tue Oct 20 09:11:22 PDT 2015


 loleaflet/README      |    1 +
 loolwsd/reference.txt |    7 +++++++
 2 files changed, 8 insertions(+)

New commits:
commit d79eb785c171186838818283cf42e13072d94d1d
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Tue Oct 20 18:10:40 2015 +0200

    loolwsd: add initial reference.txt to document HTTP POST API
    
    (cherry picked from commit 71ce604adb9a3471d0a099a7299d5030953dd3fd)

diff --git a/loleaflet/README b/loleaflet/README
index c7baa1a..57f09c8 100644
--- a/loleaflet/README
+++ b/loleaflet/README
@@ -57,6 +57,7 @@ API & events
 
 ######################################################################
 # See /loleaflet/reference.html for a better formated documentation. #
+# See /loolwsd/reference.txt for the HTTP API documentation.         #
 ######################################################################
 
 Search:
diff --git a/loolwsd/reference.txt b/loolwsd/reference.txt
new file mode 100644
index 0000000..bd733b1
--- /dev/null
+++ b/loolwsd/reference.txt
@@ -0,0 +1,7 @@
+LibreOffice On-Line API
+=======================
+
+Document conversion:
+    - API: HTTP POST to /convert-to
+        - parameters: format=<format> (see e.g. "png", "pdf" or "txt"), and the file itself in the payload
+    - example: curl -F "data=@test.txt" -F "format=pdf" http://localhost:9980/convert-to


More information about the Libreoffice-commits mailing list