Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authortobiasKaminsky <tobias@kaminsky.me>2018-09-11 11:14:55 +0300
committertobiasKaminsky <tobias@kaminsky.me>2018-09-11 11:14:55 +0300
commitd45295b89f5a4b1a61679599266f4616c55a6344 (patch)
treea7c481b29e5a5931c273a44201672052646d0bfa /docs
parent6eefc956d99d163db1f92dc2e593df81bb366434 (diff)
typos
Diffstat (limited to 'docs')
-rw-r--r--docs/templates.md (renamed from docs/tempaltes.md)20
1 files changed, 10 insertions, 10 deletions
diff --git a/docs/tempaltes.md b/docs/templates.md
index 7b91d182..48479f1e 100644
--- a/docs/tempaltes.md
+++ b/docs/templates.md
@@ -1,14 +1,14 @@
# Templates
Often users will use the same templates. This documents describes the flow and
-API's that will eventually come into place.
+APIs that will eventually come into place.
## Template location
There are two kind of templates:
1. system wide templates
-2. user defined tempaltes
+2. user defined templates
Both should be simple template files and preview for them should be obtained using
the preview API. The richdocuments works as a preview provider so it should provide
@@ -27,11 +27,11 @@ appdata. But since it will also work on 13 we have no real alternative.
There are a few special templates that are shipped with the app. The empty
files. They should always be available.
-### User defined tempaltes
+### User defined templates
In the Collabora user settings the user can select a folder from where to load
templates. This can be any folder the user has access to. So users can share template
-folders among eachother.
+folders among each other.
## API
@@ -39,11 +39,11 @@ folders among eachother.
Send a GET to:
-`<server>/ocs/v2.php/apps/richdocuemnts/api/v1/templates/<type>`
+`<server>/ocs/v2.php/apps/richdocuments/api/v1/templates/<type>`
Here type can be:
-* docuemnt
+* document
* spreadsheet
* presentation
@@ -52,13 +52,13 @@ This returns a list of templates with
* id
* name
* link to preview
-* extention
+* extension
### Template previews
Send a GET to:
-`<server>/apps/richdocuemnts/templates/<id>`
+`<server>/apps/richdocuments/templates/<id>`
Where `id` is the id of the template obtained in the listing. This returns back
an image (jpeg or png). For displaying.
@@ -67,10 +67,10 @@ an image (jpeg or png). For displaying.
Send a POST to
-`<server>/ocs/v2.php/apps/richdocuemnts/api/v1/templates/new`
+`<server>/ocs/v2.php/apps/richdocuments/api/v1/templates/new`
with:
-* `path`: the full path relative to the user where to create the document
+* `path`: the full path relative to the user where to create the document, including new file name
* `template`: the template id you want to create
## Web frontend