From c9c516ee92091865ec62bae49f7c09537047fa6c Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Fri, 5 Oct 2018 02:56:52 +0200 Subject: [PATCH] Add follow requests API --- content/en/api/rest/follow-requests.md | 40 ++++++++++++++++++++++++-- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git a/content/en/api/rest/follow-requests.md b/content/en/api/rest/follow-requests.md index 7446b626..161df7d1 100644 --- a/content/en/api/rest/follow-requests.md +++ b/content/en/api/rest/follow-requests.md @@ -1,7 +1,43 @@ --- -title: Follow requests API +title: Follow requests menu: docs: - parent: api + parent: rest-api weight: 10 --- + +## GET /api/v1/follow_requests + +Accounts that have requested to follow the user. + +Returns array of [Account]({{< relref "entities.md#account" >}}) + +### Resource information + +{{< api_method_info auth="Yes" user="Yes" scope="read read:follows follow" version="0.0.0" >}} + +### Parameters + +|Name|Description|Required|Default| +|----|-----------|:------:|:-----:| +| `limit` | Maximum number of results | Optional | 40 | + +### Pagination + +{{< api_pagination >}} + +## POST /api/v1/follow_requests/:id/authorize + +Allow the account to follow the user. + +### Resource information + +{{< api_method_info auth="Yes" user="Yes" scope="write:follows follow" version="0.0.0" >}} + +## POST /api/v1/follow_requests/:id/reject + +Do not allow the account to follow the user. + +### Resource information + +{{< api_method_info auth="Yes" user="Yes" scope="write:follows follow" version="0.0.0" >}}