aboutsummaryrefslogtreecommitdiff
path: root/API.md
diff options
context:
space:
mode:
authorrr-2016-04-27 19:24:40 +0200
committerrr-2016-04-27 19:24:50 +0200
commit2b69e9b46145f7124054bacda9857c1338e8a5d6 (patch)
tree52f94fbee333d3573b1e42b361bc45ef480e7eca /API.md
parent587a8f827693a5375148645eb413660c4dc18d94 (diff)
server/posts: add post deleting
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