apiV1MatchesPostWithHttpInfo method
Create a new match from a configuration.
Note: This method returns the HTTP Response
.
Parameters:
- CreateMatchRequestBody createMatchRequestBody: Configuration defining the participants and rules of the match.
Implementation
Future<Response> apiV1MatchesPostWithHttpInfo({ CreateMatchRequestBody? createMatchRequestBody, }) async {
// ignore: prefer_const_declarations
final path = r'/api/v1/matches';
// ignore: prefer_final_locals
Object? postBody = createMatchRequestBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}