You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2019/07/31 09:28:57 UTC

[GitHub] [dubbo-proxy] hbwhypw commented on issue #15: We need dubbo-proxy can handle with form post or queryString

hbwhypw commented on issue #15: We need dubbo-proxy can handle with form post or queryString
URL: https://github.com/apache/dubbo-proxy/issues/15#issuecomment-516772885
 
 
   I agree with you.
   一、对与原来设计的请求格式
   > {application Name}/​{Interface name}?version={version}&group={group}
   version和group可以考虑放到request header里面去。
   
   二、 对与原来设计的请求参数
   > 
   {
       "methodName" : "sayHello",
       "paramTypes" : ["org.apache.dubbo.demo.model.User"],
       "paramValues": [
           {
               "id": 23,
               "username": "testUser"
           }
       ]
   }
   
   1. 直接把methodName也放到请求路径上去;
   2. paramTypes没有必要,json是松散的,解析后能对应上,就作为参数处理,对应不上,就为空;
   参数解析与接口实际参数的匹配,可以做成3种:严格(每一个都要对应上)、忽略(少了或多了的忽略,但对应上了名称的,类型必须一致)、松散(只处理名称和类型都对应上的,其它全部忽略)
   3. 最后,就只剩下真正的参数了,完全符合网关的要求了。
   
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org