a61f6d04cd8fe0e42e6a3fe92718c01da3736070
[akkoma] / lib / pleroma / web / api_spec / schemas / account_mute_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.AccountMuteRequest do
6 alias OpenApiSpex.Schema
7 require OpenApiSpex
8
9 OpenApiSpex.schema(%{
10 title: "AccountMuteRequest",
11 description: "POST body for muting an account",
12 type: :object,
13 properties: %{
14 notifications: %Schema{
15 type: :boolean,
16 description: "Mute notifications in addition to statuses? Defaults to true.",
17 default: true
18 }
19 },
20 example: %{
21 "notifications" => true
22 }
23 })
24 end