use of org.folio.circulation.support.RouteRegistration in project mod-circulation by folio-org.
the class RequestQueueResource method register.
@Override
public void register(Router router) {
new RouteRegistration(format("%s/instance/:%s", URI_BASE, INSTANCE_ID_PARAM_NAME), router).getMany(this::getQueueForInstance);
new RouteRegistration(format("%s/instance/:%s/reorder", URI_BASE, INSTANCE_ID_PARAM_NAME), router).create(this::reorderQueueForInstance);
new RouteRegistration(format("%s/item/:%s", URI_BASE, ITEM_ID_PARAM_NAME), router).getMany(this::getQueueForItem);
new RouteRegistration(format("%s/item/:%s/reorder", URI_BASE, ITEM_ID_PARAM_NAME), router).create(this::reorderQueueForItem);
}
use of org.folio.circulation.support.RouteRegistration in project mod-circulation by folio-org.
the class CollectionResource method register.
@Override
public void register(Router router) {
RouteRegistration routeRegistration = new RouteRegistration(rootPath, router);
routeRegistration.create(this::create);
routeRegistration.get(this::get);
routeRegistration.getMany(this::getMany);
routeRegistration.replace(this::replace);
routeRegistration.delete(this::delete);
routeRegistration.deleteAll(this::empty);
}
use of org.folio.circulation.support.RouteRegistration in project mod-circulation by folio-org.
the class LoanAnonymizationResource method register.
@Override
public void register(Router router) {
RouteRegistration routeRegistration = new RouteRegistration("/loan-anonymization/by-user/:userId", router);
routeRegistration.create(this::anonymizeLoans);
}
use of org.folio.circulation.support.RouteRegistration in project mod-circulation by folio-org.
the class PickSlipsResource method register.
@Override
public void register(Router router) {
RouteRegistration routeRegistration = new RouteRegistration(rootPath, router);
routeRegistration.getMany(this::getMany);
}
use of org.folio.circulation.support.RouteRegistration in project mod-circulation by folio-org.
the class TenantActivationResource method register.
public void register(Router router) {
RouteRegistration routeRegistration = new RouteRegistration("/_/tenant", router);
routeRegistration.create(this::enableModuleForTenant);
routeRegistration.deleteAll(ctx -> noContent().writeTo(ctx.response()));
}
Aggregations