aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/api_spec/operations
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-04-21 18:23:00 +0200
committerlain <lain@soykaf.club>2020-04-21 18:23:00 +0200
commit66c2eb670b273d808f0a9c1ae087df064718ca3d (patch)
tree94750ae05b09e609a26a8f0904395ba9f6de0643 /lib/pleroma/web/api_spec/operations
parent97ad0c45977261df3068ca4f0c3febce3173c058 (diff)
downloadpleroma-66c2eb670b273d808f0a9c1ae087df064718ca3d.tar.gz
ChatController: Validate parameters.
Diffstat (limited to 'lib/pleroma/web/api_spec/operations')
-rw-r--r--lib/pleroma/web/api_spec/operations/chat_operation.ex4
1 files changed, 4 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 5bd41ec4f..dc99bd773 100644
--- a/lib/pleroma/web/api_spec/operations/chat_operation.ex
+++ b/lib/pleroma/web/api_spec/operations/chat_operation.ex
@@ -21,6 +21,7 @@ defmodule Pleroma.Web.ApiSpec.ChatOperation do
%Operation{
tags: ["chat"],
summary: "Create a chat",
+ operationId: "ChatController.create",
parameters: [
Operation.parameter(
:ap_id,
@@ -47,6 +48,7 @@ defmodule Pleroma.Web.ApiSpec.ChatOperation do
%Operation{
tags: ["chat"],
summary: "Get a list of chats that you participated in",
+ operationId: "ChatController.index",
parameters: [
Operation.parameter(:limit, :query, :integer, "How many results to return", example: 20),
Operation.parameter(:min_id, :query, :string, "Return only chats after this id"),
@@ -67,6 +69,7 @@ defmodule Pleroma.Web.ApiSpec.ChatOperation do
%Operation{
tags: ["chat"],
summary: "Get the most recent messages of the chat",
+ operationId: "ChatController.messages",
parameters: [
Operation.parameter(:id, :path, :string, "The ID of the Chat"),
Operation.parameter(:limit, :query, :integer, "How many results to return", example: 20),
@@ -89,6 +92,7 @@ defmodule Pleroma.Web.ApiSpec.ChatOperation do
%Operation{
tags: ["chat"],
summary: "Post a message to the chat",
+ operationId: "ChatController.post_chat_message",
parameters: [
Operation.parameter(:id, :path, :string, "The ID of the Chat")
],