[
https://issues.apache.org/jira/browse/TUBEMQ-393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17225067#comment-17225067
]
ASF subversion and git services commented on TUBEMQ-393:
--------------------------------------------------------
Commit b433ceb0d936a807e60ff328a0db85379fc5e7c5 in incubator-tubemq's branch
refs/heads/tubemq-client-python from gosonzhang
[ https://gitbox.apache.org/repos/asf?p=incubator-tubemq.git;h=b433ceb ]
[TUBEMQ-393]Optimize the mapping code of WEB API (#297)
> 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)