diff options
author | Dessalines <tyhou13@gmx.com> | 2019-10-16 16:00:53 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-10-16 16:00:53 -0700 |
commit | d1a01c38edf4f18323adcc7cfcb5be6cb57d3558 (patch) | |
tree | a23cac11f060908e36054ba9950b6930ddf0ce71 /docs | |
parent | 45a04070a3f665ebf00065f113c83bdf2fedbafd (diff) |
Add API docs for DeleteAccount and theme
- Fixes #298
Diffstat (limited to 'docs')
-rw-r--r-- | docs/api.md | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/api.md b/docs/api.md index 95ccd89e..95d6970e 100644 --- a/docs/api.md +++ b/docs/api.md @@ -149,6 +149,7 @@ Only the first user will be able to be the admin. op: "SaveUserSettings", data: { show_nsfw: bool, + theme: String, // Default 'darkly' auth: String } } @@ -200,6 +201,27 @@ Only the first user will be able to be the admin. } ``` +#### Delete Account + +*Permananently deletes your posts and comments* + +##### Request +```rust +{ + op: "DeleteAccount", + data: { + auth: String + } +} +``` +##### Response +```rust +{ + op: String, + jwt: String, +} +``` + #### Add admin ##### Request ```rust |