listAllEntityTemplatesByWithHttpInfo method

Future<Response> listAllEntityTemplatesByWithHttpInfo(
  1. String type, {
  2. String? searchString,
  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> listAllEntityTemplatesByWithHttpInfo(String type, { String? searchString, bool? includeEntities, }) async {
  // ignore: prefer_const_declarations
  final path = r'/rest/v1/entitytemplate/findAll/{type}'.replaceAll('{type}', type);

  // ignore: prefer_final_locals
  Object? postBody;

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

  if (searchString != null) {
    queryParams.addAll(_queryParams('', 'searchString', searchString));
  }
  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,
  );
}