createArticleWithHttpInfo method
Creates a article
Note: This method returns the HTTP Response
.
Parameters:
- ArticleDto articleDto (required):
Implementation
Future<Response> createArticleWithHttpInfo(ArticleDto articleDto,) async {
// ignore: prefer_const_declarations
final path = r'/rest/v1/article';
// ignore: prefer_final_locals
Object? postBody = articleDto;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const authNames = <String>[r'basicSchema'];
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
authNames,
);
}