projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'develop' into activation-meta
[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 16e7ed124fc48df1c6fcde0f572b4acd2beef5e2..a258e8421c6e6877145ba85e76bec2e0094bd629 100644
(file)
--- a/
lib/pleroma/web/api_spec/helpers.ex
+++ b/
lib/pleroma/web/api_spec/helpers.ex
@@
-39,6
+39,12
@@
defmodule Pleroma.Web.ApiSpec.Helpers do
:string,
"Return the newest items newer than this ID"
),
:string,
"Return the newest items newer than this ID"
),
+ Operation.parameter(
+ :offset,
+ :query,
+ %Schema{type: :integer, default: 0},
+ "Return items past this number of items"
+ ),
Operation.parameter(
:limit,
:query,
Operation.parameter(
:limit,
:query,
@@
-64,4
+70,8
@@
defmodule Pleroma.Web.ApiSpec.Helpers do
def empty_array_response do
Operation.response("Empty array", "application/json", %Schema{type: :array, example: []})
end
def empty_array_response do
Operation.response("Empty array", "application/json", %Schema{type: :array, example: []})
end
+
+ def no_content_response do
+ Operation.response("No Content", "application/json", %Schema{type: :string, example: ""})
+ end
end
end