Add spec for AccountController.unfollow
This commit is contained in:
parent
854780c72b
commit
aa958a6dda
3 changed files with 28 additions and 6 deletions
|
|
@ -225,7 +225,20 @@ defmodule Pleroma.Web.ApiSpec.AccountOperation do
|
|||
}
|
||||
end
|
||||
|
||||
def unfollow_operation, do: :ok
|
||||
def unfollow_operation do
|
||||
%Operation{
|
||||
tags: ["accounts"],
|
||||
summary: "Unfollow",
|
||||
operationId: "AccountController.unfollow",
|
||||
security: [%{"oAuth" => ["follow", "write:follows"]}],
|
||||
description: "Unfollow the given account",
|
||||
parameters: [%Reference{"$ref": "#/components/parameters/accountIdOrNickname"}],
|
||||
responses: %{
|
||||
200 => Operation.response("Relationship", "application/json", AccountRelationship)
|
||||
}
|
||||
}
|
||||
end
|
||||
|
||||
def mute_operation, do: :ok
|
||||
def unmute_operation, do: :ok
|
||||
def block_operation, do: :ok
|
||||
|
|
|
|||
|
|
@ -93,7 +93,8 @@ defmodule Pleroma.Web.MastodonAPI.AccountController do
|
|||
:followers,
|
||||
:following,
|
||||
:lists,
|
||||
:follow
|
||||
:follow,
|
||||
:unfollow
|
||||
]
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue