forked from nutomic/lemmy
Adding some docs
This commit is contained in:
parent
3babd09aff
commit
ecd6c5a2f4
2 changed files with 17 additions and 2 deletions
|
@ -37,6 +37,7 @@ Front Page|Post
|
||||||
- Can ban and unban users from communities and the site.
|
- Can ban and unban users from communities and the site.
|
||||||
- Clean, mobile-friendly interface.
|
- Clean, mobile-friendly interface.
|
||||||
- i18n / internationalization support.
|
- i18n / internationalization support.
|
||||||
|
- NSFW post / community support.
|
||||||
- High performance.
|
- High performance.
|
||||||
- Server is written in rust.
|
- Server is written in rust.
|
||||||
- Front end is `~80kB` gzipped.
|
- Front end is `~80kB` gzipped.
|
||||||
|
|
18
docs/api.md
18
docs/api.md
|
@ -28,7 +28,7 @@ A simple test command:
|
||||||
|
|
||||||
## API
|
## API
|
||||||
### 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, SaveUserSettings`
|
||||||
|
|
||||||
### Sort Types
|
### Sort Types
|
||||||
These go wherever there is a `sort` field.
|
These go wherever there is a `sort` field.
|
||||||
|
@ -109,7 +109,21 @@ Only the first user will be able to be the admin.
|
||||||
posts: Vec<PostView>,
|
posts: Vec<PostView>,
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
#### Save User Settings
|
||||||
|
##### Request
|
||||||
|
```rust
|
||||||
|
{
|
||||||
|
show_nsfw: bool,
|
||||||
|
auth: String,
|
||||||
|
}
|
||||||
|
```
|
||||||
|
##### Response
|
||||||
|
```rust
|
||||||
|
{
|
||||||
|
op: String,
|
||||||
|
jwt: String
|
||||||
|
}
|
||||||
|
```
|
||||||
#### Get Replies / Inbox
|
#### Get Replies / Inbox
|
||||||
##### Request
|
##### Request
|
||||||
```rust
|
```rust
|
||||||
|
|
Loading…
Reference in a new issue