You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@inlong.apache.org by GitBox <gi...@apache.org> on 2021/07/28 11:57:50 UTC

[GitHub] [incubator-inlong] dockerzhang opened a new issue #986: [INLONG-393] Optimize the mapping code of WEB API

dockerzhang opened a new issue #986:
URL: https://github.com/apache/incubator-inlong/issues/986


   <p>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:</p>
   
   <p><span class="image-wrap" style=""><img src="https://issues.apache.org/jira/secure/attachment/13014496/13014496_image-2020-11-01-17-39-09-133.png" style="border: 0px solid black" /></span></p>
   
   <p>see <a href="https://github.com/apache/incubator-tubemq/blob/master/tubemq-server/src/main/java/org/apache/tubemq/server/master/web/action/screen/Webapi.java#L140" class="external-link" rel="nofollow">https://github.com/apache/incubator-tubemq/blob/master/tubemq-server/src/main/java/org/apache/tubemq/server/master/web/action/screen/Webapi.java#L140</a></p>
   
   <p> </p>
   
   <p>Plan to use new API mapping class for encapsulation to facilitate subsequent function implementation</p>
   <i>JIRA link - <a href="https://issues.apache.org/jira/browse/INLONG-393">[INLONG-393]</a> created by gosonzhang</i>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-inlong] dockerzhang closed issue #986: [INLONG-393] Optimize the mapping code of WEB API

Posted by GitBox <gi...@apache.org>.
dockerzhang closed issue #986:
URL: https://github.com/apache/incubator-inlong/issues/986


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org