@Override public Route patch() { return router.patch(); }
@Override public Route patch(String path) { return router.patch(path); }
@Override public io.vertx.ext.web.Route patch() { return delegate.patch(); }
/** * Add a route that matches any HTTP PATCH request * @return the route */ public io.vertx.rxjava.ext.web.Route patch() { io.vertx.rxjava.ext.web.Route ret = io.vertx.rxjava.ext.web.Route.newInstance(delegate.patch()); return ret; }
/** * Add a route that matches a HTTP PATCH request and the specified path * @param path URI paths that begin with this path will match * @return the route */ public io.vertx.rxjava.ext.web.Route patch(String path) { io.vertx.rxjava.ext.web.Route ret = io.vertx.rxjava.ext.web.Route.newInstance(delegate.patch(path)); return ret; }
/** * Add a route that matches any HTTP PATCH request * @return the route */ public io.vertx.rxjava.ext.web.Route patch() { io.vertx.rxjava.ext.web.Route ret = io.vertx.rxjava.ext.web.Route.newInstance(delegate.patch()); return ret; }
/** * Add a route that matches a HTTP PATCH request and the specified path * @param path URI paths that begin with this path will match * @return the route */ public io.vertx.rxjava.ext.web.Route patch(String path) { io.vertx.rxjava.ext.web.Route ret = io.vertx.rxjava.ext.web.Route.newInstance(delegate.patch(path)); return ret; }
@Override public io.vertx.ext.web.Route patch(String path) { return delegate.patch(getFullPath(path)); }
break; case PATCH: route = router.patch(s); break;
router.patch("/services/data/:apiVersion/sobjects/:sObjectName/:sObjectId") .handler(handleUpdateRequest()); router.post("/services/data/:apiVersion/sobjects/:sObjectName/:sObjectId")
@Override public void start(Future<Void> future) throws Exception { super.start(); final Router router = Router.router(vertx); // body handler router.route().handler(BodyHandler.create()); // api route handler router.post(API_ADD).handler(this::apiAddUser); router.get(API_RETRIEVE).handler(this::apiRetrieveUser); router.get(API_RETRIEVE_ALL).handler(this::apiRetrieveAll); router.patch(API_UPDATE).handler(this::apiUpdateUser); router.delete(API_DELETE).handler(this::apiDeleteUser); String host = config().getString("user.account.http.address", "0.0.0.0"); int port = config().getInteger("user.account.http.port", 8081); // create HTTP server and publish REST service createHttpServer(router, host, port) .compose(serverCreated -> publishHttpEndpoint(SERVICE_NAME, host, port)) .setHandler(future.completer()); }
@Override public void start(Future<Void> future) throws Exception { super.start(); final Router router = Router.router(vertx); // body handler router.route().handler(BodyHandler.create()); // API route handler router.post(API_ADD).handler(this::apiAdd); router.get(API_RETRIEVE_BY_PAGE).handler(this::apiRetrieveByPage); router.get(API_RETRIEVE_ALL).handler(this::apiRetrieveAll); router.get(API_RETRIEVE_PRICE).handler(this::apiRetrievePrice); router.get(API_RETRIEVE).handler(this::apiRetrieve); router.patch(API_UPDATE).handler(this::apiUpdate); router.delete(API_DELETE).handler(this::apiDelete); router.delete(API_DELETE_ALL).handler(context -> requireLogin(context, this::apiDeleteAll)); // get HTTP host and port from configuration, or use default value String host = config().getString("product.http.address", "0.0.0.0"); int port = config().getInteger("product.http.port", 8082); // create HTTP server and publish REST service createHttpServer(router, host, port) .compose(serverCreated -> publishHttpEndpoint(SERVICE_NAME, host, port)) .setHandler(future.completer()); }