projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request 'Changed references of "Pleroma" to "Akkoma" in email text' (...
[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..6f67339e61a021e48efef0d86ad5bfbb8c68f6b4 100644
(file)
--- a/
lib/pleroma/web/api_spec/helpers.ex
+++ b/
lib/pleroma/web/api_spec/helpers.ex
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ApiSpec.Helpers do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ApiSpec.Helpers do
@@
-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"),
@@
-59,7
+63,7
@@
defmodule Pleroma.Web.ApiSpec.Helpers do
:with_relationships,
:query,
BooleanLike,
:with_relationships,
:query,
BooleanLike,
- "Embed relationships into accounts."
+ "Embed relationships into accounts.
**If this parameter is not set account's `pleroma.relationship` is going to be `null`.**
"
)
end
)
end
@@
-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