Search in sources :

Example 1 with RouteRegistration

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);
}
Also used : RouteRegistration(org.folio.circulation.support.RouteRegistration)

Example 2 with RouteRegistration

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);
}
Also used : RouteRegistration(org.folio.circulation.support.RouteRegistration)

Example 3 with RouteRegistration

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);
}
Also used : RouteRegistration(org.folio.circulation.support.RouteRegistration)

Example 4 with RouteRegistration

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);
}
Also used : RouteRegistration(org.folio.circulation.support.RouteRegistration)

Example 5 with RouteRegistration

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()));
}
Also used : RouteRegistration(org.folio.circulation.support.RouteRegistration)

Aggregations

RouteRegistration (org.folio.circulation.support.RouteRegistration)14