aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/api_spec/schemas
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2020-04-09 20:12:09 +0400
committerEgor Kislitsyn <egor@kislitsyn.com>2020-04-13 18:17:09 +0400
commitab185d3ea47deb38128dc501acdf27c47c542de2 (patch)
tree601031ed6043cb53124108e01810ed9e4098d2a4 /lib/pleroma/web/api_spec/schemas
parent68a979b8243b9a5b685df2c13388a93b9ede1900 (diff)
downloadpleroma-ab185d3ea47deb38128dc501acdf27c47c542de2.tar.gz
Add spec for AccountController.follows
Diffstat (limited to 'lib/pleroma/web/api_spec/schemas')
-rw-r--r--lib/pleroma/web/api_spec/schemas/account_follows_request.ex18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/pleroma/web/api_spec/schemas/account_follows_request.ex b/lib/pleroma/web/api_spec/schemas/account_follows_request.ex
new file mode 100644
index 000000000..4fbe615d6
--- /dev/null
+++ b/lib/pleroma/web/api_spec/schemas/account_follows_request.ex
@@ -0,0 +1,18 @@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
+defmodule Pleroma.Web.ApiSpec.Schemas.AccountFollowsRequest do
+ alias OpenApiSpex.Schema
+ require OpenApiSpex
+
+ OpenApiSpex.schema(%{
+ title: "AccountFollowsRequest",
+ description: "POST body for muting an account",
+ type: :object,
+ properties: %{
+ uri: %Schema{type: :string}
+ },
+ required: [:uri]
+ })
+end