diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-04-17 16:23:58 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-04-17 16:23:58 +0300 |
commit | 6e6f95c6aed77cbde1a58edcdbb5cc4f68416bca (patch) | |
tree | 923a489a9a6144bd31ff54d24140c1fd1259ae05 /lib/pleroma/web/api_spec/schemas/domain_block_request.ex | |
parent | ac672a9d6bfdd3cba7692f80a883bd38b0b09a57 (diff) | |
parent | 09bd1d12c112fe45563c25a76afde65a3381aa26 (diff) | |
download | pleroma-6e6f95c6aed77cbde1a58edcdbb5cc4f68416bca.tar.gz |
Merge remote-tracking branch 'remotes/origin/develop' into 1559-follow-request-notifications
# Conflicts:
# CHANGELOG.md
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 |