From: Dessalines Date: Wed, 15 May 2019 16:21:10 +0000 (-0700) Subject: Adding sort types to API. X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/readmes/%7B%7D/static/%7Bthis.props.icon%7D?a=commitdiff_plain;h=442bb3d20e1a5b93d0415b86ffe1cedb7c67b017;p=lemmy.git Adding sort types to API. --- 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 {