ESP32 now publishes on broker

This commit is contained in:
2025-12-27 17:45:08 +01:00
parent 0ec10f765d
commit 19ad13843c
217 changed files with 5166 additions and 26 deletions

View File

@@ -0,0 +1,207 @@
# openapi_client.DefaultApi
All URIs are relative to *https://boardmate_api*
Method | HTTP request | Description
------------- | ------------- | -------------
[**add_move**](DefaultApi.md#add_move) | **POST** /moves/add/{gameId} | POST moves/add/{gameId}
[**create_party**](DefaultApi.md#create_party) | **POST** /create | POST create
[**retrieve_games**](DefaultApi.md#retrieve_games) | **GET** /games/{id} | GET games/{id}
# **add_move**
> ResponseBodyString add_move(game_id, move_dto)
POST moves/add/{gameId}
### Example
```python
import board_mate_client
from board_mate_client.models.move_dto import MoveDto
from board_mate_client.models.response_body_string import ResponseBodyString
from board_mate_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://boardmate_api
# See configuration.py for a list of all supported configuration parameters.
configuration = board_mate_client.Configuration(
host="https://boardmate_api"
)
# Enter a context with an instance of the API client
with board_mate_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = board_mate_client.DefaultApi(api_client)
game_id = 'game_id_example' # str |
move_dto = board_mate_client.MoveDto() # MoveDto |
try:
# POST moves/add/{gameId}
api_response = api_instance.add_move(game_id, move_dto)
print("The response of DefaultApi->add_move:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DefaultApi->add_move: %s\n" % e)
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**game_id** | **str**| |
**move_dto** | [**MoveDto**](MoveDto.md)| |
### Return type
[**ResponseBodyString**](ResponseBodyString.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: */*
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | OK | - |
[[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)
# **create_party**
> ResponseBodyString create_party(game_dto)
POST create
### Example
```python
import board_mate_client
from board_mate_client.models.game_dto import GameDto
from board_mate_client.models.response_body_string import ResponseBodyString
from board_mate_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://boardmate_api
# See configuration.py for a list of all supported configuration parameters.
configuration = board_mate_client.Configuration(
host="https://boardmate_api"
)
# Enter a context with an instance of the API client
with board_mate_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = board_mate_client.DefaultApi(api_client)
game_dto = board_mate_client.GameDto() # GameDto |
try:
# POST create
api_response = api_instance.create_party(game_dto)
print("The response of DefaultApi->create_party:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DefaultApi->create_party: %s\n" % e)
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**game_dto** | [**GameDto**](GameDto.md)| |
### Return type
[**ResponseBodyString**](ResponseBodyString.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: */*
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | OK | - |
[[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)
# **retrieve_games**
> ResponseBodyGameDto retrieve_games(id)
GET games/{id}
### Example
```python
import board_mate_client
from board_mate_client.models.response_body_game_dto import ResponseBodyGameDto
from board_mate_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://boardmate_api
# See configuration.py for a list of all supported configuration parameters.
configuration = board_mate_client.Configuration(
host="https://boardmate_api"
)
# Enter a context with an instance of the API client
with board_mate_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = board_mate_client.DefaultApi(api_client)
id = 'id_example' # str |
try:
# GET games/{id}
api_response = api_instance.retrieve_games(id)
print("The response of DefaultApi->retrieve_games:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DefaultApi->retrieve_games: %s\n" % e)
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **str**| |
### Return type
[**ResponseBodyGameDto**](ResponseBodyGameDto.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: */*
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | OK | - |
[[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)

View File

@@ -0,0 +1,32 @@
# GameDto
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**white_name** | **str** | | [optional]
**black_name** | **str** | | [optional]
**time_value** | **int** | | [optional]
**increment** | **int** | | [optional]
## Example
```python
from board_mate_client.models.game_dto import GameDto
# TODO update the JSON string below
json = "{}"
# create an instance of GameDto from a JSON string
game_dto_instance = GameDto.from_json(json)
# print the JSON string representation of the object
print(GameDto.to_json())
# convert the object into a dict
game_dto_dict = game_dto_instance.to_dict()
# create an instance of GameDto from a dict
game_dto_from_dict = GameDto.from_dict(game_dto_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)

View File

@@ -0,0 +1,29 @@
# MoveDto
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**notation** | **str** | | [optional]
## Example
```python
from board_mate_client.models.move_dto import MoveDto
# TODO update the JSON string below
json = "{}"
# create an instance of MoveDto from a JSON string
move_dto_instance = MoveDto.from_json(json)
# print the JSON string representation of the object
print(MoveDto.to_json())
# convert the object into a dict
move_dto_dict = move_dto_instance.to_dict()
# create an instance of MoveDto from a dict
move_dto_from_dict = MoveDto.from_dict(move_dto_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)

View File

@@ -0,0 +1,31 @@
# ResponseBodyGameDto
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**data** | **object** | | [optional]
**message** | **str** | | [optional]
**success** | **bool** | | [optional]
## Example
```python
from board_mate_client.models.response_body_game_dto import ResponseBodyGameDto
# TODO update the JSON string below
json = "{}"
# create an instance of ResponseBodyGameDto from a JSON string
response_body_game_dto_instance = ResponseBodyGameDto.from_json(json)
# print the JSON string representation of the object
print(ResponseBodyGameDto.to_json())
# convert the object into a dict
response_body_game_dto_dict = response_body_game_dto_instance.to_dict()
# create an instance of ResponseBodyGameDto from a dict
response_body_game_dto_from_dict = ResponseBodyGameDto.from_dict(response_body_game_dto_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)

View File

@@ -0,0 +1,31 @@
# ResponseBodyString
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**data** | **str** | | [optional]
**message** | **str** | | [optional]
**success** | **bool** | | [optional]
## Example
```python
from board_mate_client.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_from_dict = ResponseBodyString.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)