Class PredicatesController
- java.lang.Object
-
- de.digitalcollections.cudami.server.controller.PredicatesController
-
@RestController @Api(description="The predicates controller", name="Predicates controller") public class PredicatesController extends Object
-
-
Constructor Summary
Constructors Constructor Description PredicatesController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<de.digitalcollections.model.api.relations.Predicate>getPredicates()de.digitalcollections.model.api.relations.Predicateupdate(String value, de.digitalcollections.model.api.relations.Predicate predicate, org.springframework.validation.BindingResult errors)
-
-
-
Method Detail
-
getPredicates
@ApiMethod(description="Get all predicates") @GetMapping({"/latest/predicates","/v3/predicates"}) @ApiResponseObject public 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") String value, @RequestBody de.digitalcollections.model.api.relations.Predicate predicate, org.springframework.validation.BindingResult errors) throws PredicatesServiceException- Throws:
PredicatesServiceException
-
-