mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-26 22:31:20 +00:00
Adding sort types to API.
This commit is contained in:
parent
ff170e1666
commit
388b5d492b
1 changed files with 5 additions and 0 deletions
|
@ -30,6 +30,9 @@ A simple test command:
|
||||||
### List
|
### 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`
|
`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
|
### User / Authentication / Admin
|
||||||
#### Login
|
#### Login
|
||||||
The `jwt` string should be stored and used anywhere `auth` is called for.
|
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
|
#### Get Posts
|
||||||
|
`Post listing types are `All, Subscribed, Community`
|
||||||
|
|
||||||
##### Request
|
##### Request
|
||||||
```rust
|
```rust
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue