projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added api spec
[akkoma]
/
lib
/
pleroma
/
web
/
api_spec
/
operations
/
search_operation.ex
diff --git
a/lib/pleroma/web/api_spec/operations/search_operation.ex
b/lib/pleroma/web/api_spec/operations/search_operation.ex
index 475848ff5418ca912a711c9e887049b527389543..169c36d879c1351d1338057ffe9ff291f73e67c8 100644
(file)
--- a/
lib/pleroma/web/api_spec/operations/search_operation.ex
+++ b/
lib/pleroma/web/api_spec/operations/search_operation.ex
@@
-19,6
+19,7
@@
defmodule Pleroma.Web.ApiSpec.SearchOperation do
apply(__MODULE__, operation, [])
end
apply(__MODULE__, operation, [])
end
+ # Note: `with_relationships` param is not supported (PleromaFE uses this op for autocomplete)
def account_search_operation do
%Operation{
tags: ["Search"],
def account_search_operation do
%Operation{
tags: ["Search"],
@@
-45,8
+46,7
@@
defmodule Pleroma.Web.ApiSpec.SearchOperation do
:query,
%Schema{allOf: [BooleanLike], default: false},
"Only include accounts that the user is following"
:query,
%Schema{allOf: [BooleanLike], default: false},
"Only include accounts that the user is following"
- ),
- with_relationships_param()
+ )
],
responses: %{
200 =>
],
responses: %{
200 =>
@@
-139,8
+139,8
@@
defmodule Pleroma.Web.ApiSpec.SearchOperation do
:query,
%Schema{allOf: [BooleanLike], default: false},
"Only include accounts that the user is following"
:query,
%Schema{allOf: [BooleanLike], default: false},
"Only include accounts that the user is following"
- )
- | pagination_params()
+ )
,
+
with_relationships_param()
| pagination_params()
],
responses: %{
200 => Operation.response("Results", "application/json", results2())
],
responses: %{
200 => Operation.response("Results", "application/json", results2())