@UserResource @RestController @RequestMapping(path="api/v1/analytics/rules") public class CustomRulesController extends Object
| Constructor and Description |
|---|
CustomRulesController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.HttpEntity<Void> |
createRule(RuleTO rule) |
org.springframework.http.HttpEntity<Void> |
deleteRule(String ruleId) |
org.springframework.http.HttpEntity<org.springframework.core.io.InputStreamResource> |
downloadRules() |
org.springframework.hateoas.Resource<RuleTO> |
getRule(String ruleId) |
org.springframework.hateoas.Resources<org.springframework.hateoas.Resource<RuleTO>> |
getRules(org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<RuleTO> assembler) |
org.springframework.hateoas.Resources<org.springframework.hateoas.Resource<RuleTO>> |
searchRules(String query) |
org.springframework.http.HttpEntity<Void> |
updateRule(String ruleId,
RuleTO rule) |
@PostMapping public org.springframework.http.HttpEntity<Void> createRule(@RequestBody RuleTO rule)
@GetMapping(value="{ruleId}")
public org.springframework.hateoas.Resource<RuleTO> getRule(@PathVariable
String ruleId)
@PutMapping(value="{ruleId}")
public org.springframework.http.HttpEntity<Void> updateRule(@PathVariable
String ruleId,
@RequestBody
RuleTO rule)
@DeleteMapping(value="{ruleId}")
public org.springframework.http.HttpEntity<Void> deleteRule(@PathVariable
String ruleId)
@GetMapping public org.springframework.hateoas.Resources<org.springframework.hateoas.Resource<RuleTO>> getRules(@PageableDefault(size=20) org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler<RuleTO> assembler)
@GetMapping(value="/search") public org.springframework.hateoas.Resources<org.springframework.hateoas.Resource<RuleTO>> searchRules(@RequestParam String query)
@GetMapping(path="/download",
produces="application/octet-stream")
public org.springframework.http.HttpEntity<org.springframework.core.io.InputStreamResource> downloadRules()
throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionCopyright © 2019. All rights reserved.