aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/api_spec/operations
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-04-29 13:19:04 +0200
committerlain <lain@soykaf.club>2020-04-29 13:19:04 +0200
commit0c491b904d126725866087ad9a51fb6346e2a358 (patch)
tree652f0d122a25f28681ed28445b5087fb56681067 /lib/pleroma/web/api_spec/operations
parent30ea6bb1674482ef6ddbfd8744f9bd878eae91e9 (diff)
parent58fded9858edbeb318dc011cb313e82a86fbafcb (diff)
downloadpleroma-0c491b904d126725866087ad9a51fb6346e2a358.tar.gz
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into remake-remodel-dms
Diffstat (limited to 'lib/pleroma/web/api_spec/operations')
-rw-r--r--lib/pleroma/web/api_spec/operations/account_operation.ex8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/pleroma/web/api_spec/operations/account_operation.ex b/lib/pleroma/web/api_spec/operations/account_operation.ex
index 2efe6e901..64e2e43c4 100644
--- a/lib/pleroma/web/api_spec/operations/account_operation.ex
+++ b/lib/pleroma/web/api_spec/operations/account_operation.ex
@@ -294,13 +294,13 @@ defmodule Pleroma.Web.ApiSpec.AccountOperation do
}
end
- def follows_operation do
+ def follow_by_uri_operation do
%Operation{
tags: ["accounts"],
- summary: "Follows",
+ summary: "Follow by URI",
operationId: "AccountController.follows",
security: [%{"oAuth" => ["follow", "write:follows"]}],
- requestBody: request_body("Parameters", follows_request(), required: true),
+ requestBody: request_body("Parameters", follow_by_uri_request(), required: true),
responses: %{
200 => Operation.response("Account", "application/json", AccountRelationship),
400 => Operation.response("Error", "application/json", ApiError),
@@ -615,7 +615,7 @@ defmodule Pleroma.Web.ApiSpec.AccountOperation do
}
end
- defp follows_request do
+ defp follow_by_uri_request do
%Schema{
title: "AccountFollowsRequest",
description: "POST body for muting an account",