aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/api_spec/schemas
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2020-04-08 23:16:20 +0400
committerEgor Kislitsyn <egor@kislitsyn.com>2020-04-13 18:17:07 +0400
commitbd6e2b300f82e66afb121c2339c3cbbfb0b1a446 (patch)
tree001c4b4b1e039ee0f644a47d14820008a49e0bd8 /lib/pleroma/web/api_spec/schemas
parent03124c96cc192ef8c4893738a0cee552c6984da6 (diff)
downloadpleroma-bd6e2b300f82e66afb121c2339c3cbbfb0b1a446.tar.gz
Add spec for AccountController.followers
Diffstat (limited to 'lib/pleroma/web/api_spec/schemas')
-rw-r--r--lib/pleroma/web/api_spec/schemas/accounts_response.ex13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/pleroma/web/api_spec/schemas/accounts_response.ex b/lib/pleroma/web/api_spec/schemas/accounts_response.ex
new file mode 100644
index 000000000..b714f59e7
--- /dev/null
+++ b/lib/pleroma/web/api_spec/schemas/accounts_response.ex
@@ -0,0 +1,13 @@
+# 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.AccountsResponse do
+ require OpenApiSpex
+
+ OpenApiSpex.schema(%{
+ title: "AccountsResponse",
+ type: :array,
+ items: Pleroma.Web.ApiSpec.Schemas.Account
+ })
+end