You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@inlong.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/07/28 11:58:01 UTC
[jira] [Updated] (INLONG-393) Optimize the mapping code of WEB API
[ https://issues.apache.org/jira/browse/INLONG-393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated INLONG-393:
----------------------------------
Labels: pull-request-available (was: )
> Optimize the mapping code of WEB API
> ------------------------------------
>
> Key: INLONG-393
> URL: https://issues.apache.org/jira/browse/INLONG-393
> Project: Apache InLong
> Issue Type: Improvement
> Reporter: Guocheng Zhang
> Assignee: Guocheng Zhang
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.7.0
>
> Attachments: image-2020-11-01-17-39-09-133.png
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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)