Update api spec to reflect OAuth scope change

This commit is contained in:
Tusooa Zhu 2022-08-09 18:15:25 -04:00 committed by Francis Dinh
parent 1642c89c1f
commit ea7e899b18
Signed by untrusted user: norm
GPG key ID: 7123E30E441E80DE

View file

@ -16,7 +16,7 @@ def index_operation do
%Operation{ %Operation{
tags: ["Backups"], tags: ["Backups"],
summary: "List backups", summary: "List backups",
security: [%{"oAuth" => ["read:account"]}], security: [%{"oAuth" => ["read:backups"]}],
operationId: "PleromaAPI.BackupController.index", operationId: "PleromaAPI.BackupController.index",
responses: %{ responses: %{
200 => 200 =>
@ -37,7 +37,7 @@ def create_operation do
%Operation{ %Operation{
tags: ["Backups"], tags: ["Backups"],
summary: "Create a backup", summary: "Create a backup",
security: [%{"oAuth" => ["read:account"]}], security: [%{"oAuth" => ["read:backups"]}],
operationId: "PleromaAPI.BackupController.create", operationId: "PleromaAPI.BackupController.create",
responses: %{ responses: %{
200 => 200 =>