searchEntityTypes method

Searches the entity types with the specified criteria and pagination.

@param {EntityTypeSearchRequest} request The search criteria and pagination information. @returns {Promise<ClientResponse

Implementation

Future<ClientResponse<EntityTypeSearchResponse, Errors>> searchEntityTypes(
    EntityTypeSearchRequest request) {
  return _start<EntityTypeSearchResponse, Errors>()
      .withUri('/api/entity/type/search')
      .withJSONBody(request)
      .withMethod('POST')
      .withResponseHandler(defaultResponseHandlerBuilder(
          (d) => EntityTypeSearchResponse.fromJson(d)))
      .go();
}