From 388b5d492bf4f2dc837e89abc2aaf72f9e0630ed Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 15 May 2019 09:21:10 -0700 Subject: [PATCH] Adding sort types to API. --- docs/api.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/api.md b/docs/api.md index a3b459b5e..69229c167 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 {