use of org.mycore.iiif.presentation.MCRIIIFPresentationManifestQuickAccess in project mycore by MyCoRe-Org.
the class MCRIIIFPresentationResource method getRange.
@GET
@Produces(MCRIIIFMediaType.APPLICATION_LD_JSON)
@Path("{" + IDENTIFIER_PARAM + "}/range/{" + NAME_PARAM + "}")
public Response getRange(@PathParam(IMPL_PARAM) String impl, @PathParam(IDENTIFIER_PARAM) String identifier, @PathParam(NAME_PARAM) String name) {
MCRIIIFPresentationManifestQuickAccess quickAccess = getManifestQuickAccess(impl, identifier);
String rangeAsJSON = getGson().toJson(quickAccess.getRange(name));
return addHeaders(Response.ok()).entity(rangeAsJSON).build();
}
Aggregations