projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pleroma.instance: Fix Exiftool module name
[akkoma]
/
lib
/
pleroma
/
web
/
api_spec
/
helpers.ex
diff --git
a/lib/pleroma/web/api_spec/helpers.ex
b/lib/pleroma/web/api_spec/helpers.ex
index a258e8421c6e6877145ba85e76bec2e0094bd629..34de2ed576c736d5cbe30db91762a26351f6ec4f 100644
(file)
--- a/
lib/pleroma/web/api_spec/helpers.ex
+++ b/
lib/pleroma/web/api_spec/helpers.ex
@@
-29,6
+29,10
@@
defmodule Pleroma.Web.ApiSpec.Helpers do
}
end
}
end
+ def admin_api_params do
+ [Operation.parameter(:admin_token, :query, :string, "Allows authorization via admin token.")]
+ end
+
def pagination_params do
[
Operation.parameter(:max_id, :query, :string, "Return items older than this ID"),
def pagination_params do
[
Operation.parameter(:max_id, :query, :string, "Return items older than this ID"),
@@
-68,7
+72,11
@@
defmodule Pleroma.Web.ApiSpec.Helpers do
end
def empty_array_response do
end
def empty_array_response do
- Operation.response("Empty array", "application/json", %Schema{type: :array, example: []})
+ Operation.response("Empty array", "application/json", %Schema{
+ type: :array,
+ items: %Schema{type: :object, example: %{}},
+ example: []
+ })
end
def no_content_response do
end
def no_content_response do