diff options
| author | rr- | 2016-04-27 19:24:40 +0200 |
|---|---|---|
| committer | rr- | 2016-04-27 19:24:50 +0200 |
| commit | 2b69e9b46145f7124054bacda9857c1338e8a5d6 (patch) | |
| tree | 52f94fbee333d3573b1e42b361bc45ef480e7eca /API.md | |
| parent | 587a8f827693a5375148645eb413660c4dc18d94 (diff) | |
server/posts: add post deleting
Diffstat (limited to 'API.md')
| -rw-r--r-- | API.md | 23 |
1 files changed, 22 insertions, 1 deletions
@@ -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** |