aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/api_spec
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pleroma/web/api_spec')
-rw-r--r--lib/pleroma/web/api_spec/operations/chat_operation.ex24
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/pleroma/web/api_spec/operations/chat_operation.ex b/lib/pleroma/web/api_spec/operations/chat_operation.ex
index 0dcfdb354..1883db7fc 100644
--- a/lib/pleroma/web/api_spec/operations/chat_operation.ex
+++ b/lib/pleroma/web/api_spec/operations/chat_operation.ex
@@ -196,6 +196,30 @@ defmodule Pleroma.Web.ApiSpec.ChatOperation do
}
end
+ def delete_operation do
+ %Operation{
+ tags: ["chat"],
+ summary: "delete",
+ operationId: "ChatController.delete",
+ parameters: [
+ Operation.parameter(:id, :path, :string, "The ID of the Chat")
+ ],
+ responses: %{
+ 200 =>
+ Operation.response(
+ "The deleted Chat",
+ "application/json",
+ Chat
+ )
+ },
+ security: [
+ %{
+ "oAuth" => ["write:chats"]
+ }
+ ]
+ }
+ end
+
def delete_message_operation do
%Operation{
tags: ["chat"],