@GET
  @Path("ddl/database/{db}/table")
  @Produces(MediaType.APPLICATION_JSON)
  public Response listTables(@PathParam("db") String db,
                 @QueryParam("like") String tablePattern)
    throws HcatException, NotAuthorizedException, BusyException,
    BadParam, ExecuteException, IOException {
    verifyUser();
    verifyDdlParam(db, ":db");

    HcatDelegator d = new HcatDelegator(appConf, execService);
    if (!TempletonUtils.isset(tablePattern)) {
      tablePattern = "*";
    }
    return d.listTables(getDoAsUser(), db, tablePattern);
  }
List all the tables in an hcat database.
hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/Server.java