summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2019-05-15 09:21:10 -0700
committerDessalines <tyhou13@gmx.com>2019-05-15 09:21:10 -0700
commit442bb3d20e1a5b93d0415b86ffe1cedb7c67b017 (patch)
tree6069213be3ff05e8d53c73d4061a74c60ec20153 /docs
parent13d7adab94b22fd0c6b166e49ea4be87d7b3b343 (diff)
Adding sort types to API.
Diffstat (limited to 'docs')
-rw-r--r--docs/api.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/api.md b/docs/api.md
index a3b459b5..69229c16 100644
--- a/docs/api.md
+++ b/docs/api.md
@@ -30,6 +30,9 @@ A simple test command:
### List
`Login, Register, CreateCommunity, CreatePost, ListCommunities, ListCategories, GetPost, GetCommunity, CreateComment, EditComment, SaveComment, CreateCommentLike, GetPosts, CreatePostLike, EditPost, SavePost, EditCommunity, FollowCommunity, GetFollowedCommunities, GetUserDetails, GetReplies, GetModlog, BanFromCommunity, AddModToCommunity, CreateSite, EditSite, GetSite, AddAdmin, BanUser, Search, MarkAllAsRead`
+### Sort Types
+`Hot, New, TopDay, TopWeek, TopMonth, TopYear, TopAll`
+
### User / Authentication / Admin
#### Login
The `jwt` string should be stored and used anywhere `auth` is called for.
@@ -540,6 +543,8 @@ Mods and admins can remove and lock a community, creators can delete it.
```
#### Get Posts
+`Post listing types are `All, Subscribed, Community`
+
##### Request
```rust
{