projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'pleroma/develop' into staff-plug
[akkoma]
/
lib
/
pleroma
/
web
/
api_spec
/
operations
/
admin
/
relay_operation.ex
diff --git
a/lib/pleroma/web/api_spec/operations/admin/relay_operation.ex
b/lib/pleroma/web/api_spec/operations/admin/relay_operation.ex
index c47f18f0cee6caa4b439135ef974db5516686fec..c55c84fee8c9509b0a557869d32cb910e2523fc2 100644
(file)
--- a/
lib/pleroma/web/api_spec/operations/admin/relay_operation.ex
+++ b/
lib/pleroma/web/api_spec/operations/admin/relay_operation.ex
@@
-18,7
+18,7
@@
defmodule Pleroma.Web.ApiSpec.Admin.RelayOperation do
tags: ["Relays"],
summary: "Retrieve a list of relays",
operationId: "AdminAPI.RelayController.index",
tags: ["Relays"],
summary: "Retrieve a list of relays",
operationId: "AdminAPI.RelayController.index",
- security: [%{"oAuth" => ["read"]}],
+ security: [%{"oAuth" => ["
admin:
read"]}],
parameters: admin_api_params(),
responses: %{
200 =>
parameters: admin_api_params(),
responses: %{
200 =>
@@
-40,7
+40,7
@@
defmodule Pleroma.Web.ApiSpec.Admin.RelayOperation do
tags: ["Relays"],
summary: "Follow a relay",
operationId: "AdminAPI.RelayController.follow",
tags: ["Relays"],
summary: "Follow a relay",
operationId: "AdminAPI.RelayController.follow",
- security: [%{"oAuth" => ["write:follows"]}],
+ security: [%{"oAuth" => ["
admin:
write:follows"]}],
parameters: admin_api_params(),
requestBody: request_body("Parameters", relay_url()),
responses: %{
parameters: admin_api_params(),
requestBody: request_body("Parameters", relay_url()),
responses: %{
@@
-54,7
+54,7
@@
defmodule Pleroma.Web.ApiSpec.Admin.RelayOperation do
tags: ["Relays"],
summary: "Unfollow a relay",
operationId: "AdminAPI.RelayController.unfollow",
tags: ["Relays"],
summary: "Unfollow a relay",
operationId: "AdminAPI.RelayController.unfollow",
- security: [%{"oAuth" => ["write:follows"]}],
+ security: [%{"oAuth" => ["
admin:
write:follows"]}],
parameters: admin_api_params(),
requestBody: request_body("Parameters", relay_unfollow()),
responses: %{
parameters: admin_api_params(),
requestBody: request_body("Parameters", relay_unfollow()),
responses: %{