Add spec for AccountController.follows
[akkoma] / lib / pleroma / web / api_spec / schemas / account_follows_request.ex
1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
4
5 defmodule Pleroma.Web.ApiSpec.Schemas.AccountFollowsRequest do
6 alias OpenApiSpex.Schema
7 require OpenApiSpex
8
9 OpenApiSpex.schema(%{
10 title: "AccountFollowsRequest",
11 description: "POST body for muting an account",
12 type: :object,
13 properties: %{
14 uri: %Schema{type: :string}
15 },
16 required: [:uri]
17 })
18 end