use of org.folio.rest.jaxrs.model.ResourcePostBulkFetchRequest in project mod-kb-ebsco-java by folio-org.
the class EholdingsResourcesImpl method postEholdingsResourcesBulkFetch.
@Override
@HandleValidationErrors
public void postEholdingsResourcesBulkFetch(String contentType, ResourcePostBulkFetchRequest entity, Map<String, String> okapiHeaders, Handler<AsyncResult<Response>> asyncResultHandler, Context vertxContext) {
final RMAPITemplate template = templateFactory.createTemplate(okapiHeaders, asyncResultHandler);
template.requestAction(context -> context.getResourcesService().retrieveResourcesBulk(entity.getResources())).executeWithResult(ResourceBulkFetchCollection.class);
}
Aggregations