From b93b98a0ce47dcae9789d6d09f54c927f12e8101 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