aboutsummaryrefslogtreecommitdiff
path: root/docs/Pleroma-API.md
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2018-12-18 17:09:01 +0100
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2018-12-18 17:16:26 +0100
commit6adea5a7b29289e88c39206338b2a9092159f4d1 (patch)
tree716b8db8b1cdb48e5694e6da273a5509609f7811 /docs/Pleroma-API.md
parenta6dfe1fc6b65ec406159a2e068ab598de2cc13e0 (diff)
downloadpleroma-6adea5a7b29289e88c39206338b2a9092159f4d1.tar.gz
Move to docs
Diffstat (limited to 'docs/Pleroma-API.md')
-rw-r--r--docs/Pleroma-API.md26
1 files changed, 26 insertions, 0 deletions
diff --git a/docs/Pleroma-API.md b/docs/Pleroma-API.md
new file mode 100644
index 000000000..cda3894f0
--- /dev/null
+++ b/docs/Pleroma-API.md
@@ -0,0 +1,26 @@
+# Authentication
+
+Requests that require it can be authenticated with [an OAuth token](https://tools.ietf.org/html/rfc6749), the `_pleroma_key` cookie, or [HTTP Basic Authentication](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization).
+
+# Request parameters
+
+Request parameters can be passed via [query strings](https://en.wikipedia.org/wiki/Query_string) or as [form data](https://www.w3.org/TR/html401/interact/forms.html). Files must be uploaded as `multipart/form-data`.
+
+# Endpoints
+
+## `/api/pleroma/emoji`
+### Lists the custom emoji on that server.
+* Method: `GET`
+* Authentication: not required
+* Params: none
+* Response: JSON
+* Example response: `{"kalsarikannit_f":"/finmoji/128px/kalsarikannit_f-128.png","perkele":"/finmoji/128px/perkele-128.png","blobdab":"/emoji/blobdab.png","happiness":"/finmoji/128px/happiness-128.png"}`
+
+## `/api/pleroma/follow_import`
+### Imports your follows, for example from a Mastodon CSV file.
+* Method: `POST`
+* Authentication: required
+* Params:
+ * `list`: STRING or FILE containing a whitespace-separated list of accounts to follow
+ * Response: HTTP 200 on success, 500 on error
+ * Note: Users that can't be followed are silently skipped.