Fix webhook read API scope
This commit is contained in:
parent
719b5d65b5
commit
9061851fed
1 changed files with 2 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.WebhookOperation do
|
||||||
tags: ["Webhooks"],
|
tags: ["Webhooks"],
|
||||||
summary: "Retrieve a list of webhooks",
|
summary: "Retrieve a list of webhooks",
|
||||||
operationId: "AdminAPI.WebhookController.index",
|
operationId: "AdminAPI.WebhookController.index",
|
||||||
security: [%{"oAuth" => ["admin:show"]}],
|
security: [%{"oAuth" => ["admin:read"]}],
|
||||||
responses: %{
|
responses: %{
|
||||||
200 =>
|
200 =>
|
||||||
Operation.response("Array of webhooks", "application/json", %Schema{
|
Operation.response("Array of webhooks", "application/json", %Schema{
|
||||||
|
|
@ -35,7 +35,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.WebhookOperation do
|
||||||
tags: ["Webhooks"],
|
tags: ["Webhooks"],
|
||||||
summary: "Retrieve a webhook",
|
summary: "Retrieve a webhook",
|
||||||
operationId: "AdminAPI.WebhookController.show",
|
operationId: "AdminAPI.WebhookController.show",
|
||||||
security: [%{"oAuth" => ["admin:show"]}],
|
security: [%{"oAuth" => ["admin:read"]}],
|
||||||
parameters: [id_param()],
|
parameters: [id_param()],
|
||||||
responses: %{
|
responses: %{
|
||||||
200 => Operation.response("Webhook", "application/json", webhook())
|
200 => Operation.response("Webhook", "application/json", webhook())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue