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/%24%7B%60data:application/static/gitweb.js?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