@RequestMapping(value="/api/constraints") @RestController public class ConstraintController extends Object
Constructor and Description |
---|
ConstraintController() |
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<Long> |
addConstraint(Constraint constraint) |
org.springframework.http.ResponseEntity<Map<String,Object>> |
attributeList(Long attributeId) |
org.springframework.http.ResponseEntity<?> |
deleteConstraint(Long id) |
org.springframework.http.ResponseEntity<Set<String>> |
getConstraintTypes() |
org.springframework.http.ResponseEntity<Long> |
updateConstraint(Long id,
Constraint constraint) |
@PostMapping(value="/list") public org.springframework.http.ResponseEntity<Map<String,Object>> attributeList(@RequestParam(value="attributeId") Long attributeId)
@GetMapping(value="/types") public org.springframework.http.ResponseEntity<Set<String>> getConstraintTypes()
@PostMapping(value="/constraint") public org.springframework.http.ResponseEntity<Long> addConstraint(@RequestBody Constraint constraint)
@PutMapping(value="/constraint/{id}") public org.springframework.http.ResponseEntity<Long> updateConstraint(@RequestParam Long id, @RequestBody Constraint constraint)
@DeleteMapping(value="/constraint/{id}") public org.springframework.http.ResponseEntity<?> deleteConstraint(@RequestParam Long id)
Copyright © 2016-2018 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Apache Log4j Audit, Log4j, Log4j Audit, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.