findAllEntityTemplatesByKeywordWithHttpInfo method

Future<Response> findAllEntityTemplatesByKeywordWithHttpInfo(
  1. String type,
  2. String keyword, {
  3. bool? includeEntities,
})

Finding entityTemplates by entityTemplate, type and version with pagination.

Returns a list of entityTemplates matched with given input.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> findAllEntityTemplatesByKeywordWithHttpInfo(String type, String keyword, { bool? includeEntities, }) async {
  // ignore: prefer_const_declarations
  final path = r'/rest/v1/entitytemplate/findAll/{type}/keyword/{keyword}'
      .replaceAll('{type}', type)
      .replaceAll('{keyword}', keyword);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  if (includeEntities != null) {
    queryParams.addAll(_queryParams('', 'includeEntities', includeEntities));
  }

  const authNames = <String>[r'basicSchema'];
  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
    authNames,
  );
}