diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2019-02-03 12:31:12 +0100 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2019-02-16 19:50:13 +0100 |
commit | 4df455f69bef5270c7e6a57022237ff75f13687c (patch) | |
tree | 0030b5dc3639fa2f534b5e913873e4015a0246aa /docs/Pleroma-API.md | |
parent | 3b141194715e362d65482672d00b10991d102fa2 (diff) | |
download | pleroma-4df455f69bef5270c7e6a57022237ff75f13687c.tar.gz pleroma-4df455f69bef5270c7e6a57022237ff75f13687c.zip |
[MastoAPI] Add switching of frontend flavours
Diffstat (limited to 'docs/Pleroma-API.md')
-rw-r--r-- | docs/Pleroma-API.md | 14 |
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 |