/** * Map the route for HTTP POST requests * * @param path the path * @param route The route */ public static void post(String path, Route route) { getInstance().post(path, route); }
/** * Map the route for HTTP POST requests * * @param path the path * @param acceptType the accept type * @param route The route */ public static void post(String path, String acceptType, Route route) { getInstance().post(path, acceptType, route); }
/** * Map the route for HTTP POST requests * * @param path the path * @param route The route * @param transformer the response transformer */ public static void post(String path, Route route, ResponseTransformer transformer) { getInstance().post(path, route, transformer); }
/** * Map the route for HTTP POST requests * * @param path the path * @param route The route * @param engine the template engine */ public static void post(String path, TemplateViewRoute route, TemplateEngine engine) { getInstance().post(path, route, engine); }
/** * Map the route for HTTP POST requests * * @param path the path * @param acceptType the accept type * @param route The route * @param transformer the response transformer */ public static void post(String path, String acceptType, Route route, ResponseTransformer transformer) { getInstance().post(path, acceptType, route, transformer); }
/** * Map the route for HTTP POST requests * * @param path the path * @param acceptType the accept type * @param route The route * @param engine the template engine */ public static void post(String path, String acceptType, TemplateViewRoute route, TemplateEngine engine) { getInstance().post(path, acceptType, route, engine); }
@Override public void define(Service service) { service.post(BASE, this::mergeMailboxes, jsonTransformer); }
/** * Map the route for HTTP POST requests * * @param path the path * @param route The route */ public static void post(String path, Route route) { getInstance().post(path, route); }
/** * Map the route for HTTP POST requests * * @param path the path * @param route The route * @param engine the template engine */ public static void post(String path, TemplateViewRoute route, TemplateEngine engine) { getInstance().post(path, route, engine); }
/** * Map the route for HTTP POST requests * * @param path the path * @param acceptType the accept type * @param route The route */ public static void post(String path, String acceptType, Route route) { getInstance().post(path, acceptType, route); }
/** * Map the route for HTTP POST requests * * @param path the path * @param route The route * @param transformer the response transformer */ public static void post(String path, Route route, ResponseTransformer transformer) { getInstance().post(path, route, transformer); }
/** * Map the route for HTTP POST requests * * @param path the path * @param acceptType the accept type * @param route The route * @param transformer the response transformer */ public static void post(String path, String acceptType, Route route, ResponseTransformer transformer) { getInstance().post(path, acceptType, route, transformer); }
/** * Map the route for HTTP POST requests * * @param path the path * @param acceptType the accept type * @param route The route * @param engine the template engine */ public static void post(String path, String acceptType, TemplateViewRoute route, TemplateEngine engine) { getInstance().post(path, acceptType, route, engine); }
@Override public void define(Service service) { service.get(VERSION_BASE, (request, response) -> getCassandraCurrentVersion(), jsonTransformer); service.get(VERSION_BASE_LATEST, (request, response) -> getCassandraLatestVersion(), jsonTransformer); service.post(VERSION_UPGRADE_BASE, this::upgradeToVersion, jsonTransformer); service.post(VERSION_UPGRADE_TO_LATEST_BASE, (request, response) -> upgradeToLatest(response), jsonTransformer); }
@Override public void addRoutes(Service service) { requireNonNull(service, "service"); service.get("/events", this::handleGetEvents); service.put("/vehicles/:NAME/integrationLevel", this::handlePutVehicleIntegrationLevel); service.post("/vehicles/:NAME/withdrawal", this::handlePostWithdrawalByVehicle); service.get("/vehicles/:NAME", this::handleGetVehicleByName); service.get("/vehicles", this::handleGetVehicles); service.post("/transportOrders/:NAME/withdrawal", this::handlePostWithdrawalByOrder); service.post("/transportOrders/:NAME", this::handlePostTransportOrder); service.get("/transportOrders/:NAME", this::handleGetTransportOrderByName); service.get("/transportOrders", this::handleGetTransportOrders); }
.port(WORKER_LISTEN_PORT) .threadPool(WORKER_SINGLE_POINT_THREADS); sparkHttpService.post("/single", new AnalysisWorkerController(this)::handleSinglePoint);
.port(WORKER_LISTEN_PORT) .threadPool(WORKER_SINGLE_POINT_THREADS); sparkHttpService.post("/single", new AnalysisWorkerController(this)::handleSinglePoint);
hgqlService.post(config.getGraphqlConfig().graphQLPath(), (req, res) -> { ObjectMapper mapper = new ObjectMapper(); HGQLQueryService service = new HGQLQueryService(config);
hgqlService.post(config.getGraphqlConfig().graphQLPath(), (req, res) -> { ObjectMapper mapper = new ObjectMapper(); HGQLQueryService service = new HGQLQueryService(config);
server.get( "/crawls/:crawler_id", json(crawlerResource.getStatus)); server.get( "/crawls/:crawler_id/status", json(crawlerResource.getStatus)); server.post("/crawls/:crawler_id", json(crawlerResource.startCrawl)); server.post("/crawls/:crawler_id/startCrawl", json(crawlerResource.startCrawl)); server.get( "/crawls/:crawler_id/metrics", json(crawlerResource.metricsResource)); server.get( "/crawls/:crawler_id/prometheus", promethize(crawlerResource.metricsResource)); server.get( "/crawls/:crawler_id/stopCrawl", json(crawlerResource.stopCrawl)); server.post("/crawls/:crawler_id/seeds", json(crawlerResource.addSeeds)); server.post("/crawls/:crawler_id/cookies", json(crawlerResource.addCookies)); server.get( "/crawls/:crawler_id/labels", json(labelsResource.getLabels)); server.put( "/crawls/:crawler_id/labels", json(labelsResource.addLabels)); server.post("/crawls/:crawler_id/labels", json(labelsResource.addLabels)); server.get( "/crawls/:crawler_id/_search", elasticsearchProxyResource.searchApi); server.post("/crawls/:crawler_id/_search", elasticsearchProxyResource.searchApi);