aboutsummaryrefslogtreecommitdiff
path: root/API.md
diff options
context:
space:
mode:
Diffstat (limited to 'API.md')
-rw-r--r--API.md23
1 files changed, 22 insertions, 1 deletions
diff --git a/API.md b/API.md
index 6904d6d..83f0fc9 100644
--- a/API.md
+++ b/API.md
@@ -32,7 +32,7 @@
- ~~Creating post~~
- ~~Updating post~~
- [Getting post](#getting-post)
- - ~~Deleting post~~
+ - [Deleting post](#deleting-post)
- [Rating post](#rating-post)
- ~~Adding post to favorites~~
- ~~Removing post from favorites~~
@@ -647,6 +647,27 @@ data.
Retrieves information about an existing post.
+## Deleting post
+- **Request**
+
+ `DELETE /post/<id>`
+
+- **Output**
+
+ ```json5
+ {}
+ ```
+
+- **Errors**
+
+ - the post does not exist
+ - privileges are too low
+
+- **Description**
+
+ Deletes existing post. Related posts and tags are kept.
+
+
## Rating post
- **Request**

© 2015 - 2026 Jakob L. Kreuze