From d1a01c38edf4f18323adcc7cfcb5be6cb57d3558 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 16 Oct 2019 16:00:53 -0700 Subject: [PATCH] Add API docs for DeleteAccount and theme - Fixes #298 --- docs/api.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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 -- 2.44.1