projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'revert-c368bf6d' into 'develop'
[akkoma]
/
lib
/
pleroma
/
web
/
api_spec
/
operations
/
admin
/
media_proxy_cache_operation.ex
diff --git
a/lib/pleroma/web/api_spec/operations/admin/media_proxy_cache_operation.ex
b/lib/pleroma/web/api_spec/operations/admin/media_proxy_cache_operation.ex
index ab45d6633013eb6212d3ec2fc00fddeea48f8ad9..8f85ebf2debd5fc3cbc5f3e2e5774191b301f9f2 100644
(file)
--- a/
lib/pleroma/web/api_spec/operations/admin/media_proxy_cache_operation.ex
+++ b/
lib/pleroma/web/api_spec/operations/admin/media_proxy_cache_operation.ex
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ApiSpec.Admin.MediaProxyCacheOperation do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ApiSpec.Admin.MediaProxyCacheOperation do
@@
-16,10
+16,10
@@
defmodule Pleroma.Web.ApiSpec.Admin.MediaProxyCacheOperation do
def index_operation do
%Operation{
def index_operation do
%Operation{
- tags: ["
Admin", "MediaProxyC
ache"],
- summary: "
Fetch a paginated list of all banned MediaProxy URLs in Cachex
",
+ tags: ["
MediaProxy c
ache"],
+ summary: "
Retrieve a list of banned MediaProxy URLs
",
operationId: "AdminAPI.MediaProxyCacheController.index",
operationId: "AdminAPI.MediaProxyCacheController.index",
- security: [%{"oAuth" => ["read:media_proxy_caches"]}],
+ security: [%{"oAuth" => ["
admin:
read:media_proxy_caches"]}],
parameters: [
Operation.parameter(
:query,
parameters: [
Operation.parameter(
:query,
@@
-44,7
+44,7
@@
defmodule Pleroma.Web.ApiSpec.Admin.MediaProxyCacheOperation do
responses: %{
200 =>
Operation.response(
responses: %{
200 =>
Operation.response(
- "Array of
banned MediaProxy URLs in Cachex
",
+ "Array of
MediaProxy URLs
",
"application/json",
%Schema{
type: :object,
"application/json",
%Schema{
type: :object,
@@
-68,10
+68,10
@@
defmodule Pleroma.Web.ApiSpec.Admin.MediaProxyCacheOperation do
def delete_operation do
%Operation{
def delete_operation do
%Operation{
- tags: ["
Admin", "MediaProxyC
ache"],
- summary: "Remove a banned MediaProxy URL
from Cachex
",
+ tags: ["
MediaProxy c
ache"],
+ summary: "Remove a banned MediaProxy URL",
operationId: "AdminAPI.MediaProxyCacheController.delete",
operationId: "AdminAPI.MediaProxyCacheController.delete",
- security: [%{"oAuth" => ["write:media_proxy_caches"]}],
+ security: [%{"oAuth" => ["
admin:
write:media_proxy_caches"]}],
parameters: admin_api_params(),
requestBody:
request_body(
parameters: admin_api_params(),
requestBody:
request_body(
@@
-94,10
+94,10
@@
defmodule Pleroma.Web.ApiSpec.Admin.MediaProxyCacheOperation do
def purge_operation do
%Operation{
def purge_operation do
%Operation{
- tags: ["
Admin", "MediaProxyC
ache"],
- summary: "Purge a
nd optionally ban a MediaProxy URL
",
+ tags: ["
MediaProxy c
ache"],
+ summary: "Purge a
URL from MediaProxy cache and optionally ban it
",
operationId: "AdminAPI.MediaProxyCacheController.purge",
operationId: "AdminAPI.MediaProxyCacheController.purge",
- security: [%{"oAuth" => ["write:media_proxy_caches"]}],
+ security: [%{"oAuth" => ["
admin:
write:media_proxy_caches"]}],
parameters: admin_api_params(),
requestBody:
request_body(
parameters: admin_api_params(),
requestBody:
request_body(