Class PredicatesController

java.lang.Object
de.digitalcollections.cudami.server.controller.PredicatesController

@RestController
@Api(description="The predicates controller",
     name="Predicates controller")
public class PredicatesController
extends java.lang.Object
  • Constructor Summary

    Constructors
    Constructor Description
    PredicatesController()  
  • Method Summary

    Modifier and Type Method Description
    java.util.List<de.digitalcollections.model.api.relations.Predicate> getPredicates()  
    de.digitalcollections.model.api.relations.Predicate update​(java.lang.String value, de.digitalcollections.model.api.relations.Predicate predicate, org.springframework.validation.BindingResult errors)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PredicatesController

      public PredicatesController()
  • Method Details

    • getPredicates

      @ApiMethod(description="Get all predicates") @GetMapping({"/latest/predicates","/v3/predicates"}) @ApiResponseObject public java.util.List<de.digitalcollections.model.api.relations.Predicate> getPredicates()
    • update

      @ApiMethod(description="create or update a predicate, identified by its value") @PutMapping(value={"/latest/predicates/{value}","/v3/predicates/{value}"}, produces="application/json") @ApiResponseObject public de.digitalcollections.model.api.relations.Predicate update​(@PathVariable("value") java.lang.String value, @RequestBody de.digitalcollections.model.api.relations.Predicate predicate, org.springframework.validation.BindingResult errors) throws PredicatesServiceException
      Throws:
      PredicatesServiceException