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

@@ -9,7 +9,7 @@ Method | HTTP request | Description
# **history**
> List[ResponseBodyListMessageDto] history(client_id, top=top)
> ResponseBodyString history(client_id, top=top)
GET message/history/{clientId}
@@ -19,7 +19,7 @@ GET message/history/{clientId}
import time
import os
import board_mate.message
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.rest import ApiException
from pprint import pprint
@@ -57,7 +57,7 @@ Name | Type | Description | Notes
### Return type
[**List[ResponseBodyListMessageDto]**](ResponseBodyListMessageDto.md)
[**ResponseBodyString**](ResponseBodyString.md)
### Authorization
@@ -76,7 +76,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **post_message**
> str post_message(message_post_request_dto)
> ResponseBodyString post_message(message_post_request_dto)
POST message/send
@@ -87,6 +87,7 @@ import time
import os
import board_mate.message
from board_mate.message.models.message_post_request_dto import MessagePostRequestDto
from board_mate.message.models.response_body_string import ResponseBodyString
from board_mate.message.rest import ApiException
from pprint import pprint
@@ -122,7 +123,7 @@ Name | Type | Description | Notes
### Return type
**str**
[**ResponseBodyString**](ResponseBodyString.md)
### Authorization

View File

@@ -0,0 +1,30 @@
# ResponseBodyString
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**data** | **str** | | [optional]
**message** | **str** | | [optional]
**success** | **bool** | | [optional]
## Example
```python
from board_mate.message.models.response_body_string import ResponseBodyString
# TODO update the JSON string below
json = "{}"
# create an instance of ResponseBodyString from a JSON string
response_body_string_instance = ResponseBodyString.from_json(json)
# print the JSON string representation of the object
print ResponseBodyString.to_json()
# convert the object into a dict
response_body_string_dict = response_body_string_instance.to_dict()
# create an instance of ResponseBodyString from a dict
response_body_string_form_dict = response_body_string.from_dict(response_body_string_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)