Guocheng Zhang created TUBEMQ-393:
-------------------------------------

             Summary: Optimize the mapping code of WEB API
                 Key: TUBEMQ-393
                 URL: https://issues.apache.org/jira/browse/TUBEMQ-393
             Project: Apache TubeMQ
          Issue Type: Improvement
            Reporter: Guocheng Zhang
         Attachments: image-2020-11-01-17-39-09-133.png

At present, the mapping of WEB API is done through the if-else method to judge 
the string matching of the external API, which makes this piece of code poorly 
maintainable, inconvenient for expansion, and needs to be adjusted, like this:

!image-2020-11-01-17-39-09-133.png!

see 
[https://github.com/apache/incubator-tubemq/blob/master/tubemq-server/src/main/java/org/apache/tubemq/server/master/web/action/screen/Webapi.java#L140]

 

Plan to use new API mapping class for encapsulation to facilitate subsequent 
function implementation



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to