diff options
author | lain <lain@soykaf.club> | 2020-04-15 14:41:43 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-04-15 14:41:43 +0200 |
commit | 44bfb491eae00d541e6d11c8b52b5de5bc0bd34e (patch) | |
tree | 0fae87b11ceb4696075927c7f77228e59bb6926c /lib/pleroma/web/api_spec/schemas/domain_block_request.ex | |
parent | 64c78581fe397b6d9356c52cf3f43becd2ff3b4e (diff) | |
parent | ad8630b95a691d01ec49344fd1a7578860728d63 (diff) | |
download | pleroma-44bfb491eae00d541e6d11c8b52b5de5bc0bd34e.tar.gz |
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into remake-remodel-dms
Diffstat (limited to 'lib/pleroma/web/api_spec/schemas/domain_block_request.ex')
-rw-r--r-- | lib/pleroma/web/api_spec/schemas/domain_block_request.ex | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/pleroma/web/api_spec/schemas/domain_block_request.ex b/lib/pleroma/web/api_spec/schemas/domain_block_request.ex new file mode 100644 index 000000000..ee9238361 --- /dev/null +++ b/lib/pleroma/web/api_spec/schemas/domain_block_request.ex @@ -0,0 +1,20 @@ +# 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.DomainBlockRequest do + alias OpenApiSpex.Schema + require OpenApiSpex + + OpenApiSpex.schema(%{ + title: "DomainBlockRequest", + type: :object, + properties: %{ + domain: %Schema{type: :string} + }, + required: [:domain], + example: %{ + "domain" => "facebook.com" + } + }) +end |