summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-06-07 18:04:53 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-06-07 18:04:53 +0200
commit5a67ef829030c3d8b617f53b37df3045aef04275 (patch)
treee0d73792ac81da48a466cd934c0afaecd507c455
parent384c8425242ca760f87a18cd2b18f8fca600d67b (diff)
doc/api/file.md: Fix heading level and add TOC
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--doc/api/file.md20
1 files changed, 15 insertions, 5 deletions
diff --git a/doc/api/file.md b/doc/api/file.md
index 55dd6e0bf..74120450b 100644
--- a/doc/api/file.md
+++ b/doc/api/file.md
@@ -1,4 +1,14 @@
-### file/get_config
+# /file API endpoints
+
+**Table of Contents**
+
+- [file/get_config](#fileget_config)
+- [file/upload](#fileupload)
+- [file/history](#filehistory)
+- [file/delete](#filedelete)
+- [file/create_multipaste](#filecreate_multipaste)
+
+## file/get_config
Request method: GET
This is a public method and does not require an apikey.
@@ -42,7 +52,7 @@ Example:
| ------- | ------ |
| 1.4.0 | Add data.{max_input_vars,request_max_size} |
-### file/upload
+## file/upload
Required access level: `basic`
@@ -91,7 +101,7 @@ Example:
}
```
-### file/history
+## file/history
Return the currently available files/multipastes.
@@ -178,7 +188,7 @@ Example:
| 2.0.0 | Add ''multipaste_item.date''. Remove ''multipaste_item.{multipaste_id,user_id}''. |
| 2.1.0 | Add ''item.thumbnail'' |
-### file/delete
+## file/delete
Delete files or multipastes. Multipastes containing deleted files will also be silently removed.
@@ -232,7 +242,7 @@ Example:
}
```
-### file/create_multipaste
+## file/create_multipaste
Required access level: `basic`