code: @Path("basic")
      @POST
      @Consumes(Servlets.JSON_MEDIA_TYPE)
      @Produces(Servlets.JSON_MEDIA_TYPE)
      public AtlasSearchResult searchWithParameters(SearchParameters parameters) throws AtlasBaseException {
          AtlasPerfTracer perf = null;
  
          try {
              if (AtlasPerfTracer.isPerfTraceEnabled(PERF_LOG)) {
                  perf = AtlasPerfTracer.getPerfTracer(PERF_LOG, "DiscoveryREST.searchWithParameters("+ parameters + ")");
              }
  
              if (parameters.getLimit() < 0 || parameters.getOffset() < 0) {
                  throw new AtlasBaseException(AtlasErrorCode.BAD_REQUEST, "Limit/offset should be non-negative");
              }
  
              if (StringUtils.isEmpty(parameters.getTypeName()) && !isEmpty(parameters.getEntityFilters())) {
                  throw new AtlasBaseException(AtlasErrorCode.BAD_REQUEST, "EntityFilters specified without Type name");
              }
  
              if (StringUtils.isEmpty(parameters.getClassification()) && !isEmpty(parameters.getTagFilters())) {
                  throw new AtlasBaseException(AtlasErrorCode.BAD_REQUEST, "TagFilters specified without tag name");
              }
  
              return atlasDiscoveryService.searchWithParameters(parameters);
          } finally {
              AtlasPerfTracer.log(perf);
          }
      }
docs: Attribute based search for entities satisfying the search parameters
  @param parameters Search parameters
  @return Atlas search result
  @throws AtlasBaseException
  
  @HTTP 200 On successful search
  @HTTP 400 Tag/Entity doesn't exist or Tag/entity filter is present without tag/type name