Class PredicateController


  • @RestController
    @Api(description="The predicates controller",
         name="Predicates controller")
    public class PredicateController
    extends Object
    • Constructor Detail

      • PredicateController

        public PredicateController()
    • Method Detail

      • getPredicates

        @ApiMethod(description="Get all predicates")
        @GetMapping({"/latest/predicates","/v3/predicates"})
        @ApiResponseObject
        public List<de.digitalcollections.model.api.identifiable.entity.relation.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.identifiable.entity.relation.Predicate update​(@PathVariable("value")
                                                                                             String value,
                                                                                             @RequestBody
                                                                                             de.digitalcollections.model.api.identifiable.entity.relation.Predicate predicate,
                                                                                             org.springframework.validation.BindingResult errors)
                                                                                      throws PredicatesServiceException
        Throws:
        PredicatesServiceException