diff options
author | Dessalines <happydooby@gmail.com> | 2019-08-15 16:53:59 -0700 |
---|---|---|
committer | Dessalines <happydooby@gmail.com> | 2019-08-15 16:53:59 -0700 |
commit | 42c9c57a1c169720b8ac5182dc20da5051bd6dcc (patch) | |
tree | 02944106433ef4daa981094b6074583585b27c36 /docs/api.md | |
parent | 1070cd6921ba533772d1ee1cf4e28cbb0c938f32 (diff) | |
parent | d3ecba4405e8a2bfb7ea02ac17c2c9f5be978d4a (diff) |
Merge branch 'dev'
Diffstat (limited to 'docs/api.md')
-rw-r--r-- | docs/api.md | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/docs/api.md b/docs/api.md index 744de5f3..90b931e6 100644 --- a/docs/api.md +++ b/docs/api.md @@ -28,7 +28,7 @@ A simple test command: ## API ### 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 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>, } ``` - +#### Save User Settings +##### Request +```rust +{ + show_nsfw: bool, + auth: String, +} +``` +##### Response +```rust +{ + op: String, + jwt: String +} +``` #### Get Replies / Inbox ##### Request ```rust |