[ 
https://issues.apache.org/jira/browse/TUBEMQ-393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Guocheng Zhang resolved TUBEMQ-393.
-----------------------------------
    Fix Version/s: 0.7.0
       Resolution: Fixed

> 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
>            Assignee: Guocheng Zhang
>            Priority: Major
>             Fix For: 0.7.0
>
>         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