diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2020-04-08 23:16:20 +0400 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2020-04-13 18:17:07 +0400 |
commit | bd6e2b300f82e66afb121c2339c3cbbfb0b1a446 (patch) | |
tree | 001c4b4b1e039ee0f644a47d14820008a49e0bd8 /lib/pleroma/web/api_spec/schemas | |
parent | 03124c96cc192ef8c4893738a0cee552c6984da6 (diff) | |
download | pleroma-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.ex | 13 |
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 |