diff options
author | lain <lain@soykaf.club> | 2020-06-23 10:17:12 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-06-23 10:17:12 +0200 |
commit | 2c603f20098d7f342e1cbad8e6a6c86b007c5a99 (patch) | |
tree | dd9a339daed6a25e758167413d9231e22ce42ac4 /lib/pleroma/web/api_spec/operations/account_operation.ex | |
parent | b05f795326b77edd881ffea2c004d7ca0ddd7df9 (diff) | |
parent | 3875a507d4b52df7edbda376d3ed31ad52241ac5 (diff) | |
download | pleroma-2c603f20098d7f342e1cbad8e6a6c86b007c5a99.tar.gz |
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into update-validator
Diffstat (limited to 'lib/pleroma/web/api_spec/operations/account_operation.ex')
-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) } } |