You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by sh...@apache.org on 2022/06/08 04:03:56 UTC

[rocketmq-eventbridge] branch main updated: update event rule uri

This is an automated email from the ASF dual-hosted git repository.

shenlin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/rocketmq-eventbridge.git


The following commit(s) were added to refs/heads/main by this push:
     new 219f7a9  update event rule uri
219f7a9 is described below

commit 219f7a9cc8a77a46655e59b958157452af0388ce
Author: xuesong172500 <da...@126.com>
AuthorDate: Tue Jun 7 19:44:43 2022 +0800

    update event rule uri
---
 .../adapter/api/controller/EventRuleController.java        | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/adapter/api/src/main/java/org/apache/rocketmq/eventbridge/adapter/api/controller/EventRuleController.java b/adapter/api/src/main/java/org/apache/rocketmq/eventbridge/adapter/api/controller/EventRuleController.java
index f6c6a93..2244f0f 100644
--- a/adapter/api/src/main/java/org/apache/rocketmq/eventbridge/adapter/api/controller/EventRuleController.java
+++ b/adapter/api/src/main/java/org/apache/rocketmq/eventbridge/adapter/api/controller/EventRuleController.java
@@ -62,7 +62,7 @@ public class EventRuleController {
     @Autowired
     AccountAPI accountAPI;
 
-    @PostMapping(value = {"createRule"})
+    @PostMapping(value = {"createEventRule"})
     public CreateRuleResponse createRule(@RequestBody CreateRuleRequest createRuleRequest) {
         eventRuleService.createEventRule(accountAPI.getResourceOwnerAccountId(), createRuleRequest.getEventBusName(),
             createRuleRequest.getEventRuleName(), createRuleRequest.getDescription(),
@@ -70,7 +70,7 @@ public class EventRuleController {
         return new CreateRuleResponse(createRuleRequest.getEventRuleName());
     }
 
-    @PostMapping(value = {"getRule"})
+    @PostMapping(value = {"getEventRule"})
     public GetRuleResponse getRule(@RequestBody GetRuleRequest getRuleRequest) {
         EventRuleDetail eventRuleDetail = eventRuleDomainService.getEventRuleDetail(
             accountAPI.getResourceOwnerAccountId(), getRuleRequest.getEventBusName(),
@@ -90,14 +90,14 @@ public class EventRuleController {
         return getRuleResponse;
     }
 
-    @PostMapping(value = {"deleteRule"})
+    @PostMapping(value = {"deleteEventRule"})
     public DeleteRuleResponse deleteRule(@RequestBody DeleteRuleRequest deleteRuleRequest) {
         eventRuleDomainService.deleteEventRuleWithDependencies(accountAPI.getResourceOwnerAccountId(),
             deleteRuleRequest.getEventBusName(), deleteRuleRequest.getEventRuleName());
         return new DeleteRuleResponse();
     }
 
-    @PostMapping(value = {"updateRule"})
+    @PostMapping(value = {"updateEventRule"})
     public UpdateRuleResponse updateRule(@RequestBody UpdateRuleRequest updateRuleRequest) {
         eventRuleDomainService.updateEventRuleWithDependencies(accountAPI.getResourceOwnerAccountId(),
             updateRuleRequest.getEventBusName(), updateRuleRequest.getEventRuleName(),
@@ -105,7 +105,7 @@ public class EventRuleController {
         return new UpdateRuleResponse();
     }
 
-    @PostMapping(value = {"listRules"})
+    @PostMapping(value = {"listEventRules"})
     public ListRulesResponse listRules(@RequestBody ListRulesRequest listRulesRequest) {
         PaginationResult<List<EventRule>> paginationResult = eventRuleService.listEventRules(
             accountAPI.getResourceOwnerAccountId(), listRulesRequest.getEventBusName(), listRulesRequest.getNextToken(),
@@ -128,14 +128,14 @@ public class EventRuleController {
             listRulesRequest.getMaxResults());
     }
 
-    @PostMapping(value = {"enableRule"})
+    @PostMapping(value = {"enableEventRule"})
     public EnableRuleResponse enableRule(@RequestBody EnableRuleRequest enableRuleRequest) {
         eventRuleDomainService.enableEventRuleWithDependencies(accountAPI.getResourceOwnerAccountId(),
             enableRuleRequest.getEventBusName(), enableRuleRequest.getEventRuleName());
         return new EnableRuleResponse();
     }
 
-    @PostMapping(value = {"disableRule"})
+    @PostMapping(value = {"disableEventRule"})
     public DisableRuleResponse disableRule(@RequestBody DisableRuleRequest disableRuleRequest) {
         eventRuleDomainService.disableEventRuleWithDependencies(accountAPI.getResourceOwnerAccountId(),
             disableRuleRequest.getEventBusName(), disableRuleRequest.getEventRuleName());