Update message endpoint

This commit is contained in:
2026-01-02 17:19:22 +01:00
parent b4d9f8d9cf
commit 1b2cd919d1
11 changed files with 234 additions and 43 deletions

View File

@@ -20,10 +20,10 @@ from pydantic import validate_arguments, ValidationError
from pydantic import StrictInt, StrictStr
from typing import List, Optional
from typing import Optional
from board_mate.message.models.message_post_request_dto import MessagePostRequestDto
from board_mate.message.models.response_body_list_message_dto import ResponseBodyListMessageDto
from board_mate.message.models.response_body_string import ResponseBodyString
from board_mate.message.api_client import ApiClient
from board_mate.message.api_response import ApiResponse
@@ -46,7 +46,7 @@ class MessageApi:
self.api_client = api_client
@validate_arguments
def history(self, client_id : StrictStr, top : Optional[StrictInt] = None, **kwargs) -> List[ResponseBodyListMessageDto]: # noqa: E501
def history(self, client_id : StrictStr, top : Optional[StrictInt] = None, **kwargs) -> ResponseBodyString: # noqa: E501
"""GET message/history/{clientId} # noqa: E501
This method makes a synchronous HTTP request by default. To make an
@@ -68,7 +68,7 @@ class MessageApi:
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: List[ResponseBodyListMessageDto]
:rtype: ResponseBodyString
"""
kwargs['_return_http_data_only'] = True
if '_preload_content' in kwargs:
@@ -112,7 +112,7 @@ class MessageApi:
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(List[ResponseBodyListMessageDto], status_code(int), headers(HTTPHeaderDict))
:rtype: tuple(ResponseBodyString, status_code(int), headers(HTTPHeaderDict))
"""
_params = locals()
@@ -171,7 +171,7 @@ class MessageApi:
_auth_settings = [] # noqa: E501
_response_types_map = {
'200': "List[ResponseBodyListMessageDto]",
'200': "ResponseBodyString",
}
return self.api_client.call_api(
@@ -192,7 +192,7 @@ class MessageApi:
_request_auth=_params.get('_request_auth'))
@validate_arguments
def post_message(self, message_post_request_dto : MessagePostRequestDto, **kwargs) -> str: # noqa: E501
def post_message(self, message_post_request_dto : MessagePostRequestDto, **kwargs) -> ResponseBodyString: # noqa: E501
"""POST message/send # noqa: E501
This method makes a synchronous HTTP request by default. To make an
@@ -212,7 +212,7 @@ class MessageApi:
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: str
:rtype: ResponseBodyString
"""
kwargs['_return_http_data_only'] = True
if '_preload_content' in kwargs:
@@ -254,7 +254,7 @@ class MessageApi:
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(str, status_code(int), headers(HTTPHeaderDict))
:rtype: tuple(ResponseBodyString, status_code(int), headers(HTTPHeaderDict))
"""
_params = locals()
@@ -316,7 +316,7 @@ class MessageApi:
_auth_settings = [] # noqa: E501
_response_types_map = {
'200': "str",
'200': "ResponseBodyString",
}
return self.api_client.call_api(