Class MCRRestAPIClassifications

java.lang.Object
org.mycore.restapi.v1.MCRRestAPIClassifications

@Path("/classifications") public class MCRRestAPIClassifications extends Object
REST API for classification objects.
Version:
$Revision: $ $Date: $
Author:
Robert Stephan
  • Field Details

  • Constructor Details

    • MCRRestAPIClassifications

      public MCRRestAPIClassifications()
  • Method Details

    • listClassifications

      @GET @Produces({"text/xml;charset=UTF-8","application/json;charset=UTF-8"}) public jakarta.ws.rs.core.Response listClassifications(@Context jakarta.ws.rs.core.UriInfo info, @QueryParam("format") @DefaultValue("json") String format)
      lists all available classifications as XML or JSON
      Parameters:
      info - - the URIInfo object
      format - - the output format ('xml' or 'json)
      Returns:
      a Jersey Response Object
    • showObject

      @GET @Path("/{classID}") @Produces({"text/xml;charset=UTF-8","application/json;charset=UTF-8"}) public jakarta.ws.rs.core.Response showObject(@PathParam("classID") String classID, @QueryParam("format") @DefaultValue("xml") String format, @QueryParam("filter") @DefaultValue("") String filter, @QueryParam("style") @DefaultValue("") String style, @QueryParam("callback") @DefaultValue("") String callback)
      returns a single classification object
      Parameters:
      classID - - the classfication id
      format - Possible values are: json | xml (required)
      filter - a ';'-separated list of ':'-separated key-value pairs, possible keys are: - lang - the language of the returned labels, if ommited all labels in all languages will be returned - root - an id for a category which will be used as root - nonempty - hide empty categories
      style - a ';'-separated list of values, possible keys are: - 'checkboxtree' - create a json syntax which can be used as input for a dojo checkboxtree; - 'checked' - (together with 'checkboxtree') all checkboxed will be checked - 'jstree' - create a json syntax which can be used as input for a jsTree - 'opened' - (together with 'jstree') - all nodes will be opened - 'disabled' - (together with 'jstree') - all nodes will be disabled - 'selected' - (together with 'jstree') - all nodes will be selected
      callback - - used in JSONP to wrap json result into a Javascript function named by callback parameter
      Returns:
      a Jersey Response object