Remote Timeline: add Streaming support
[akkoma] / lib / pleroma / web / api_spec / operations / pleroma_emoji_file_operation.ex
index 7dd4ce311e56b7606efd9603666f17faa02713f9..a56641426961461f0dc4debb2b704c829d169131 100644 (file)
@@ -71,7 +71,8 @@ defmodule Pleroma.Web.ApiSpec.PleromaEmojiFileOperation do
         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),
-        409 => Operation.response("Conflict", "application/json", ApiError)
+        409 => Operation.response("Conflict", "application/json", ApiError),
+        422 => Operation.response("Unprocessable Entity", "application/json", ApiError)
       }
     }
   end
@@ -118,13 +119,14 @@ defmodule Pleroma.Web.ApiSpec.PleromaEmojiFileOperation do
       responses: %{
         200 => Operation.response("Files Object", "application/json", files_object()),
         400 => Operation.response("Bad Request", "application/json", ApiError),
-        404 => Operation.response("Not Found", "application/json", ApiError)
+        404 => Operation.response("Not Found", "application/json", ApiError),
+        422 => Operation.response("Unprocessable Entity", "application/json", ApiError)
       }
     }
   end
 
   defp name_param do
-    Operation.parameter(:name, :path, :string, "Pack Name", example: "cofe", required: true)
+    Operation.parameter(:name, :query, :string, "Pack Name", example: "cofe", required: true)
   end
 
   defp files_object do