diff options
author | lain <lain@soykaf.club> | 2020-06-22 12:37:10 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-06-22 12:37:10 +0000 |
commit | 59bdef0c337f1892282e245c5a236680af8e0318 (patch) | |
tree | ce4c3c2a39e88a805caa124e5b40324b923ba88b /lib/pleroma/web/api_spec | |
parent | 31489bc864c92c9f4b891373f34f0a9e3d8e32ff (diff) | |
parent | 0321a3e07814c3f225f19e0372b69a7813cef15e (diff) | |
download | pleroma-59bdef0c337f1892282e245c5a236680af8e0318.tar.gz |
Merge branch 'feature/1739-account-endpoints' into 'develop'
account visibility in masto api
Closes #1739
See merge request pleroma/pleroma!2488
Diffstat (limited to 'lib/pleroma/web/api_spec')
-rw-r--r-- | lib/pleroma/web/api_spec/operations/account_operation.ex | 2 |
1 files changed, 2 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 20572f8ea..9bde8fc0d 100644 --- a/lib/pleroma/web/api_spec/operations/account_operation.ex +++ b/lib/pleroma/web/api_spec/operations/account_operation.ex @@ -102,6 +102,7 @@ defmodule Pleroma.Web.ApiSpec.AccountOperation do parameters: [%Reference{"$ref": "#/components/parameters/accountIdOrNickname"}], responses: %{ 200 => Operation.response("Account", "application/json", Account), + 401 => Operation.response("Error", "application/json", ApiError), 404 => Operation.response("Error", "application/json", ApiError) } } @@ -142,6 +143,7 @@ defmodule Pleroma.Web.ApiSpec.AccountOperation do ] ++ pagination_params(), responses: %{ 200 => Operation.response("Statuses", "application/json", array_of_statuses()), + 401 => Operation.response("Error", "application/json", ApiError), 404 => Operation.response("Error", "application/json", ApiError) } } |