projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'smol-test' into 'develop'
[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 b6932157aef07908bdc10cbb062aa53f9c4f45de..efbfce75f57b8e4af96f97c82ff7a172e084b8bc 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
@@
-24,6
+24,8
@@
defmodule Pleroma.Web.ApiSpec.PleromaEmojiFileOperation do
parameters: [name_param()],
responses: %{
200 => Operation.response("Files Object", "application/json", files_object()),
parameters: [name_param()],
responses: %{
200 => Operation.response("Files Object", "application/json", files_object()),
+ 422 => Operation.response("Unprocessable Entity", "application/json", ApiError),
+ 404 => Operation.response("Not Found", "application/json", ApiError),
400 => Operation.response("Bad Request", "application/json", ApiError),
409 => Operation.response("Conflict", "application/json", ApiError)
}
400 => Operation.response("Bad Request", "application/json", ApiError),
409 => Operation.response("Conflict", "application/json", ApiError)
}
@@
-67,8
+69,10
@@
defmodule Pleroma.Web.ApiSpec.PleromaEmojiFileOperation do
parameters: [name_param()],
responses: %{
200 => Operation.response("Files Object", "application/json", files_object()),
parameters: [name_param()],
responses: %{
200 => Operation.response("Files Object", "application/json", files_object()),
+ 404 => Operation.response("Not Found", "application/json", ApiError),
400 => Operation.response("Bad Request", "application/json", ApiError),
400 => Operation.response("Bad Request", "application/json", ApiError),
- 409 => Operation.response("Conflict", "application/json", ApiError)
+ 409 => Operation.response("Conflict", "application/json", ApiError),
+ 422 => Operation.response("Unprocessable Entity", "application/json", ApiError)
}
}
end
}
}
end
@@
-114,7
+118,9
@@
defmodule Pleroma.Web.ApiSpec.PleromaEmojiFileOperation do
],
responses: %{
200 => Operation.response("Files Object", "application/json", files_object()),
],
responses: %{
200 => Operation.response("Files Object", "application/json", files_object()),
- 400 => Operation.response("Bad Request", "application/json", ApiError)
+ 400 => Operation.response("Bad Request", "application/json", ApiError),
+ 404 => Operation.response("Not Found", "application/json", ApiError),
+ 422 => Operation.response("Unprocessable Entity", "application/json", ApiError)
}
}
end
}
}
end