domain_block_request.ex (497B)
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.DomainBlockRequest do 6 alias OpenApiSpex.Schema 7 require OpenApiSpex 8 9 OpenApiSpex.schema(%{ 10 title: "DomainBlockRequest", 11 type: :object, 12 properties: %{ 13 domain: %Schema{type: :string} 14 }, 15 required: [:domain], 16 example: %{ 17 "domain" => "facebook.com" 18 } 19 }) 20 end