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

zhangzicheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu.git


The following commit(s) were added to refs/heads/master by this push:
     new c29f397b0 feat:fix ambiguous controller path (#4167)
c29f397b0 is described below

commit c29f397b05485f536d99e1c902fe24b9840768b6
Author: mahaitao <[email protected]>
AuthorDate: Wed Nov 9 14:23:47 2022 +0800

    feat:fix ambiguous controller path (#4167)
    
    Co-authored-by: mahaitao617 <[email protected]>
---
 .../java/org/apache/shenyu/admin/controller/TagController.java    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/shenyu-admin/src/main/java/org/apache/shenyu/admin/controller/TagController.java
 
b/shenyu-admin/src/main/java/org/apache/shenyu/admin/controller/TagController.java
index 17fc110d3..2a3b222e3 100644
--- 
a/shenyu-admin/src/main/java/org/apache/shenyu/admin/controller/TagController.java
+++ 
b/shenyu-admin/src/main/java/org/apache/shenyu/admin/controller/TagController.java
@@ -78,7 +78,7 @@ public class TagController {
      * @param id tag name.
      * @return {@linkplain ShenyuAdminResult}
      */
-    @GetMapping("/{name}")
+    @GetMapping("/name/{name}")
     public ShenyuAdminResult detailTag(@PathVariable("id") @Valid
                                         @Existed(provider = RuleMapper.class,
                                                 message = "tag is not 
existed") final String id) {
@@ -92,7 +92,7 @@ public class TagController {
      * @param parentTagId  parentTagId.
      * @return {@linkplain ShenyuAdminResult}
      */
-    @GetMapping("/{parentTagId}")
+    @GetMapping("/parentTagId/{parentTagId}")
     public ShenyuAdminResult 
queryListByParentTagId(@PathVariable("parentTagId") @Valid final String 
parentTagId) {
         List<TagVO> tagVOList = 
Optional.ofNullable(tagService.findByParentTagId(parentTagId)).orElse(Lists.newArrayList());
         return ShenyuAdminResult.success(ShenyuResultMessage.DETAIL_SUCCESS, 
tagVOList);
@@ -104,7 +104,7 @@ public class TagController {
      * @param name tag name.
      * @return {@linkplain ShenyuAdminResult}
      */
-    @GetMapping("/{id}")
+    @GetMapping("/id/{id}")
     public ShenyuAdminResult queryByName(@PathVariable("name") @Valid final 
String name) {
         List<TagVO> tagVO = tagService.findByQuery(name);
         return ShenyuAdminResult.success(ShenyuResultMessage.DETAIL_SUCCESS, 
tagVO);
@@ -117,7 +117,7 @@ public class TagController {
      * @param tagDTO rule.
      * @return {@linkplain ShenyuAdminResult}
      */
-    @PutMapping("/{id}")
+    @PutMapping("/id/{id}")
     public ShenyuAdminResult updateTag(@PathVariable("id") @Valid final String 
id,
                                         @Valid @RequestBody final TagDTO 
tagDTO) {
         tagDTO.setId(id);

Reply via email to