fizz supports the client to call the dubbo interface of the backend through the http protocol.
- Management background configuration routing
- Client http calling convention
As shown in the previous section, the back-end dubbo service is com.fizzgate.fizz.examples.dubbo.common.service.ShoppingCartService. The input parameter types of the findByIdsAndName method are java.util.List and java.lang.String in order. The client passes http The json object request body passes the value corresponding to the method parameter, such as:
{
"p1": [
1,
2,
3
],
"p2": "v2"
}
Note that the value of the first parameter is represented by p1, and the nth parameter is represented by pn, with p in lowercase. The above can also be passed in a json array, such as:
[
[1, 2, 3],
"v2"
]