code: @GET
      @Path("/attribute")
      @Consumes(Servlets.JSON_MEDIA_TYPE)
      @Produces(Servlets.JSON_MEDIA_TYPE)
      public AtlasSearchResult searchUsingAttribute(@QueryParam("attrName")        String attrName,
                                                    @QueryParam("attrValuePrefix") String attrValuePrefix,
                                                    @QueryParam("typeName")        String typeName,
                                                    @QueryParam("limit")           int    limit,
                                                    @QueryParam("offset")          int    offset) throws AtlasBaseException {
          AtlasPerfTracer perf = null;
  
          try {
              if (AtlasPerfTracer.isPerfTraceEnabled(PERF_LOG)) {
                  perf = AtlasPerfTracer.getPerfTracer(PERF_LOG, "DiscoveryREST.searchUsingAttribute(" + attrName + "," +
                          attrValuePrefix + "," + typeName + "," + limit + "," + offset + ")");
              }
  
              if (StringUtils.isEmpty(attrName) && StringUtils.isEmpty(attrValuePrefix)) {
                  throw new AtlasBaseException(AtlasErrorCode.INVALID_PARAMETERS,
                          String.format("attrName : {0}, attrValue: {1} for attribute search.", attrName, attrValuePrefix));
              }
  
              return atlasDiscoveryService.searchUsingBasicQuery(null, typeName, null, attrName, attrValuePrefix, true, limit, offset);
  
          } finally {
              AtlasPerfTracer.log(perf);
          }
      }
docs: Retrieve data for the specified attribute search query
  @param attrName  Attribute name
  @param attrValuePrefix Attibute value to search on
  @param typeName limit the result to only entities of specified type or its sub-types
  @param limit limit the result set to only include the specified number of entries
  @param offset start offset of the result set (useful for pagination)
  @return Search results
  @throws AtlasBaseException
  @HTTP 200 On successful FullText lookup with some results, might return an empty list if execution succeeded
  without any results
  @HTTP 400 Invalid wildcard or query parameters