From: Dessalines Date: Wed, 16 Oct 2019 23:00:53 +0000 (-0700) Subject: Add API docs for DeleteAccount and theme X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/readmes/%22https:/hacktivis.me/%7Bthis.src%28%27jpg%27%29%7D?a=commitdiff_plain;h=d1a01c38edf4f18323adcc7cfcb5be6cb57d3558;p=lemmy.git Add API docs for DeleteAccount and theme - Fixes #298 --- 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