Add message history

This commit is contained in:
2026-01-02 01:14:42 +01:00
parent 08afaa19ee
commit a4c72098b3
9 changed files with 366 additions and 7 deletions

View File

@@ -0,0 +1,99 @@
openapi: "3.1.0"
info:
title: "boardmate_api API"
description: "boardmate_api API"
version: "1.0.0"
servers:
- url: "https://boardmate_api"
paths:
/message/send:
post:
summary: "POST message/send"
operationId: "postMessage"
tags:
- Message
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/MessagePostRequestDto"
required: true
responses:
"200":
description: "OK"
content:
'*/*':
schema:
type: "string"
/message/history/{clientId}:
get:
summary: "GET message/history/{clientId}"
operationId: "history"
tags:
- Message
parameters:
- name: "clientId"
in: "path"
required: true
schema:
type: "string"
- name: "$top"
in: "query"
required: false
schema:
type: "integer"
format: "int32"
default: "20"
responses:
"200":
description: "OK"
content:
'*/*':
schema:
type: "array"
items:
$ref: "#/components/schemas/ResponseBodyListMessageDto"
components:
schemas:
MessagePostRequestDto:
type: "object"
properties:
content:
type: "string"
nullable: true
clientId:
type: "string"
nullable: true
timeStamp:
type: "integer"
format: "int32"
nullable: true
ResponseBodyListMessageDto:
type: "object"
properties:
data:
type: array
items:
$ref: "#/components/schemas/MessageDto"
nullable: true
message:
type: "string"
nullable: true
success:
type: "boolean"
nullable: false
MessageDto:
type: "object"
properties:
content:
type: "string"
nullable: true
timestamp:
type: "integer"
format: "int32"
nullable: true