aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/api_spec
diff options
context:
space:
mode:
authormarcin mikołajczak <git@mkljczk.pl>2022-01-10 20:04:14 +0100
committermarcin mikołajczak <git@mkljczk.pl>2022-01-10 20:04:14 +0100
commit4f249b23977d7426c6249875b538c7a6c1b239ff (patch)
tree618a325cd7a408d9cb945d7e15ffddbdef2f281d /lib/pleroma/web/api_spec
parent9032d065e6710400420320edbee9a9ca5e490eae (diff)
parent753a9b3f323c72f2ecc147733695c52488a06895 (diff)
downloadpleroma-4f249b23977d7426c6249875b538c7a6c1b239ff.tar.gz
Merge remote-tracking branch 'origin/develop' into account-endorsements
Diffstat (limited to 'lib/pleroma/web/api_spec')
-rw-r--r--lib/pleroma/web/api_spec/operations/account_operation.ex20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/pleroma/web/api_spec/operations/account_operation.ex b/lib/pleroma/web/api_spec/operations/account_operation.ex
index 80b1c134a..35d8609ef 100644
--- a/lib/pleroma/web/api_spec/operations/account_operation.ex
+++ b/lib/pleroma/web/api_spec/operations/account_operation.ex
@@ -428,6 +428,26 @@ defmodule Pleroma.Web.ApiSpec.AccountOperation do
}
end
+ def lookup_operation do
+ %Operation{
+ tags: ["Account lookup"],
+ summary: "Find a user by nickname",
+ operationId: "AccountController.lookup",
+ parameters: [
+ Operation.parameter(
+ :acct,
+ :query,
+ :string,
+ "User nickname"
+ )
+ ],
+ responses: %{
+ 200 => Operation.response("Account", "application/json", Account),
+ 404 => Operation.response("Error", "application/json", ApiError)
+ }
+ }
+ end
+
def endorsements_operation do
%Operation{
tags: ["Retrieve account information"],