@UserResource @RestController @RequestMapping(path="/api/v1/analytics/rules") public class BookingRuleController extends BaseController
| Constructor and Description |
|---|
BookingRuleController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.HttpEntity<Void> |
createOrUpdateCustomRules(List<CustomRuleEntity> ruleEntities) |
org.springframework.http.HttpEntity<Void> |
createOrUpdateStaticRules(List<RuleEntity> ruleEntities) |
org.springframework.http.HttpEntity<Void> |
createRule(CustomRuleEntity ruleEntity) |
org.springframework.http.HttpEntity<Void> |
deleteCustomRule(String ruleId) |
org.springframework.http.HttpEntity<Void> |
deleteCustomRules(List<String> ruleIds) |
org.springframework.http.HttpEntity<Void> |
deleteStaticRule(String ruleId) |
org.springframework.http.HttpEntity<Void> |
deleteStaticRules(List<String> ruleIds) |
org.springframework.http.ResponseEntity<org.springframework.core.io.ByteArrayResource> |
getCustomRules() |
org.springframework.http.ResponseEntity<org.springframework.core.io.ByteArrayResource> |
getStaticRules() |
org.springframework.http.HttpEntity<Void> |
updateCustomRule(String ruleId,
CustomRuleEntity ruleEntity) |
org.springframework.http.HttpEntity<Void> |
updateRule(String ruleId,
RuleEntity ruleEntity) |
org.springframework.http.HttpEntity<?> |
uploadReplaceCustomRules(org.springframework.web.multipart.MultipartFile rulesFile) |
org.springframework.http.HttpEntity<?> |
uploadReplaceStaticRules(org.springframework.web.multipart.MultipartFile rulesFile) |
loadBytesForWeb, loadBytesForWeb, resourceNotFound, returnDocument, returnDocument, userDataLocationHeader, userId, yamlObjectMapperpublic static final String BASE_PATH
@RequestMapping(method=POST) public org.springframework.http.HttpEntity<Void> createRule(@RequestBody CustomRuleEntity ruleEntity)
@RequestMapping(value="/custom",
method=GET)
@ResponseBody
public org.springframework.http.ResponseEntity<org.springframework.core.io.ByteArrayResource> getCustomRules()
@RequestMapping(value="/static",
method=GET)
@ResponseBody
public org.springframework.http.ResponseEntity<org.springframework.core.io.ByteArrayResource> getStaticRules()
@RequestMapping(value="/custom/{ruleId}",
method=PUT)
public org.springframework.http.HttpEntity<Void> updateCustomRule(@PathVariable
String ruleId,
@RequestBody
CustomRuleEntity ruleEntity)
@RequestMapping(value="/static/{ruleId}",
method=PUT)
public org.springframework.http.HttpEntity<Void> updateRule(@PathVariable
String ruleId,
@RequestBody
RuleEntity ruleEntity)
@RequestMapping(path="/custom",
method=PUT)
public org.springframework.http.HttpEntity<Void> createOrUpdateCustomRules(@RequestBody
List<CustomRuleEntity> ruleEntities)
@RequestMapping(path="/static",
method=PUT)
public org.springframework.http.HttpEntity<Void> createOrUpdateStaticRules(@RequestBody
List<RuleEntity> ruleEntities)
@RequestMapping(path="/custom/upload",
method=PUT,
consumes="application/octet-stream")
public org.springframework.http.HttpEntity<?> uploadReplaceCustomRules(@RequestParam
org.springframework.web.multipart.MultipartFile rulesFile)
@RequestMapping(path="/static/upload",
method=PUT,
consumes="application/octet-stream")
public org.springframework.http.HttpEntity<?> uploadReplaceStaticRules(@RequestParam
org.springframework.web.multipart.MultipartFile rulesFile)
@RequestMapping(value="/custom/{ruleId}",
method=DELETE)
public org.springframework.http.HttpEntity<Void> deleteCustomRule(@PathVariable
String ruleId)
@RequestMapping(value="/static/{ruleId}",
method=DELETE)
public org.springframework.http.HttpEntity<Void> deleteStaticRule(@PathVariable
String ruleId)
@RequestMapping(value="/custom",
method=DELETE)
public org.springframework.http.HttpEntity<Void> deleteCustomRules(@PathVariable
List<String> ruleIds)
Copyright © 2018. All rights reserved.