projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merge
[akkoma]
/
lib
/
pleroma
/
web
/
api_spec
/
operations
/
pleroma_emoji_file_operation.ex
diff --git
a/lib/pleroma/web/api_spec/operations/pleroma_emoji_file_operation.ex
b/lib/pleroma/web/api_spec/operations/pleroma_emoji_file_operation.ex
index 83981f4e71c09dd8fb4bff94c8e67fd5c6aecfe6..8c76096b5cbc37121d04038a1822c9c08ab9ab4d 100644
(file)
--- a/
lib/pleroma/web/api_spec/operations/pleroma_emoji_file_operation.ex
+++ b/
lib/pleroma/web/api_spec/operations/pleroma_emoji_file_operation.ex
@@
-16,10
+16,10
@@
defmodule Pleroma.Web.ApiSpec.PleromaEmojiFileOperation do
def create_operation do
%Operation{
def create_operation do
%Operation{
- tags: ["Emoji
Packs
"],
+ tags: ["Emoji
pack administration
"],
summary: "Add new file to the pack",
operationId: "PleromaAPI.EmojiPackController.add_file",
summary: "Add new file to the pack",
operationId: "PleromaAPI.EmojiPackController.add_file",
- security: [%{"oAuth" => ["write"]}],
+ security: [%{"oAuth" => ["
admin:
write"]}],
requestBody: request_body("Parameters", create_request(), required: true),
parameters: [name_param()],
responses: %{
requestBody: request_body("Parameters", create_request(), required: true),
parameters: [name_param()],
responses: %{
@@
-62,10
+62,10
@@
defmodule Pleroma.Web.ApiSpec.PleromaEmojiFileOperation do
def update_operation do
%Operation{
def update_operation do
%Operation{
- tags: ["Emoji
Packs
"],
+ tags: ["Emoji
pack administration
"],
summary: "Add new file to the pack",
operationId: "PleromaAPI.EmojiPackController.update_file",
summary: "Add new file to the pack",
operationId: "PleromaAPI.EmojiPackController.update_file",
- security: [%{"oAuth" => ["write"]}],
+ security: [%{"oAuth" => ["
admin:
write"]}],
requestBody: request_body("Parameters", update_request(), required: true),
parameters: [name_param()],
responses: %{
requestBody: request_body("Parameters", update_request(), required: true),
parameters: [name_param()],
responses: %{
@@
-106,10
+106,10
@@
defmodule Pleroma.Web.ApiSpec.PleromaEmojiFileOperation do
def delete_operation do
%Operation{
def delete_operation do
%Operation{
- tags: ["Emoji
Packs
"],
+ tags: ["Emoji
pack administration
"],
summary: "Delete emoji file from pack",
operationId: "PleromaAPI.EmojiPackController.delete_file",
summary: "Delete emoji file from pack",
operationId: "PleromaAPI.EmojiPackController.delete_file",
- security: [%{"oAuth" => ["write"]}],
+ security: [%{"oAuth" => ["
admin:
write"]}],
parameters: [
name_param(),
Operation.parameter(:shortcode, :query, :string, "File shortcode",
parameters: [
name_param(),
Operation.parameter(:shortcode, :query, :string, "File shortcode",