@RestController @RequestMapping(path="api/v1/rules") public class RulesController extends Object
| Constructor and Description |
|---|
RulesController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.HttpEntity<Void> |
createRule(RuleEntity ruleEntity) |
org.springframework.http.HttpEntity<Void> |
deleteRule(String ruleId) |
org.springframework.http.HttpEntity<org.springframework.core.io.InputStreamResource> |
downloadRules(RulesService.FileFormat format) |
org.springframework.hateoas.Resource<RuleEntity> |
getRule(String ruleId) |
org.springframework.hateoas.PagedResources<org.springframework.hateoas.Resource<RuleEntity>> |
getRules(org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<RuleEntity> assembler) |
org.springframework.hateoas.Resources<RuleEntity> |
searchRules(String query) |
org.springframework.http.HttpEntity<Void> |
updateRule(String ruleId,
RuleEntity ruleEntity) |
org.springframework.http.HttpEntity<?> |
uploadRules(org.springframework.web.multipart.MultipartFile rulesFile) |
@RequestMapping(method=GET) public org.springframework.hateoas.PagedResources<org.springframework.hateoas.Resource<RuleEntity>> getRules(@PageableDefault(size=20) org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler<RuleEntity> assembler)
@RequestMapping(value="/{ruleId}",
method=GET)
public org.springframework.hateoas.Resource<RuleEntity> getRule(@PathVariable
String ruleId)
@RequestMapping(method=POST) public org.springframework.http.HttpEntity<Void> createRule(@RequestBody RuleEntity ruleEntity)
@RequestMapping(value="/{ruleId}",
method=PUT)
public org.springframework.http.HttpEntity<Void> updateRule(@PathVariable
String ruleId,
@RequestBody
RuleEntity ruleEntity)
@RequestMapping(value="/{ruleId}",
method=DELETE)
public org.springframework.http.HttpEntity<Void> deleteRule(@PathVariable
String ruleId)
@RequestMapping(value="/search",
method=GET)
public org.springframework.hateoas.Resources<RuleEntity> searchRules(@RequestParam
String query)
@RequestMapping(path="/download",
method=GET,
produces="application/octet-stream")
public org.springframework.http.HttpEntity<org.springframework.core.io.InputStreamResource> downloadRules(@RequestParam(required=false,defaultValue="CSV")
RulesService.FileFormat format)
throws IOException
IOException@RequestMapping(path="/upload",
method=POST)
public org.springframework.http.HttpEntity<?> uploadRules(@RequestParam
org.springframework.web.multipart.MultipartFile rulesFile)
Copyright © 2018. All rights reserved.