aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorkaniini <nenolod@gmail.com>2019-02-18 04:01:51 +0000
committerkaniini <nenolod@gmail.com>2019-02-18 04:01:51 +0000
commitc23bd05737c38c407f998d3aa48c5c3d191f0c56 (patch)
tree0f6a25c242237081c6e7bbb49b01e0c082c2ae3e /docs
parentcd019a5927059bb52447add43a9b29893928c416 (diff)
parent72a4272d84a68ceb4d9a39ddaa4d3f45779bfebf (diff)
downloadpleroma-c23bd05737c38c407f998d3aa48c5c3d191f0c56.tar.gz
Merge branch 'features/flavour-switching' into 'develop'
[MastoAPI] Add switching of frontend flavours See merge request pleroma/pleroma!807
Diffstat (limited to 'docs')
-rw-r--r--docs/Pleroma-API.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/Pleroma-API.md b/docs/Pleroma-API.md
index e1448d3f0..379d3dbed 100644
--- a/docs/Pleroma-API.md
+++ b/docs/Pleroma-API.md
@@ -94,3 +94,17 @@ Request parameters can be passed via [query strings](https://en.wikipedia.org/wi
## `/api/pleroma/admin/`…
See [Admin-API](Admin-API.md)
+
+## `/api/v1/pleroma/flavour/:flavour`
+* Method `POST`
+* Authentication: required
+* Response: JSON string. Returns the user flavour or the default one on success, otherwise returns `{"error": "error_msg"}`
+* Example response: "glitch"
+* Note: This is intended to be used only by mastofe
+
+## `/api/v1/pleroma/flavour`
+* Method `GET`
+* Authentication: required
+* Response: JSON string. Returns the user flavour or the default one.
+* Example response: "glitch"
+* Note: This is intended to be used only by mastofe