diff options
author | Mark Felder <feld@FreeBSD.org> | 2020-10-05 12:40:53 -0500 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2020-10-05 12:40:53 -0500 |
commit | 346cc3ac244384d37d1bcbbe888173725465a307 (patch) | |
tree | 61947d678e4f0a1be1a71e68f0bf4f03301eb725 /lib/pleroma/web/api_spec/operations/admin | |
parent | 3f201475e099aecf0c77ca5396b114433ea58224 (diff) | |
parent | 4b05eb9a321ebdc03588f786683e83427fe31f1c (diff) | |
download | pleroma-346cc3ac244384d37d1bcbbe888173725465a307.tar.gz pleroma-346cc3ac244384d37d1bcbbe888173725465a307.zip |
Merge branch 'develop' into feature/1893-remote-emoji-packs-pagination
Diffstat (limited to 'lib/pleroma/web/api_spec/operations/admin')
-rw-r--r-- | lib/pleroma/web/api_spec/operations/admin/relay_operation.ex | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/pleroma/web/api_spec/operations/admin/relay_operation.ex b/lib/pleroma/web/api_spec/operations/admin/relay_operation.ex index e06b2d164..f754bb9f5 100644 --- a/lib/pleroma/web/api_spec/operations/admin/relay_operation.ex +++ b/lib/pleroma/web/api_spec/operations/admin/relay_operation.ex @@ -56,7 +56,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.RelayOperation do operationId: "AdminAPI.RelayController.unfollow", security: [%{"oAuth" => ["write:follows"]}], parameters: admin_api_params(), - requestBody: request_body("Parameters", relay_url()), + requestBody: request_body("Parameters", relay_unfollow()), responses: %{ 200 => Operation.response("Status", "application/json", %Schema{ @@ -91,4 +91,14 @@ defmodule Pleroma.Web.ApiSpec.Admin.RelayOperation do } } end + + defp relay_unfollow do + %Schema{ + type: :object, + properties: %{ + relay_url: %Schema{type: :string, format: :uri}, + force: %Schema{type: :boolean, default: false} + } + } + end end |