first, the Gateway engine
Gateway Engine Address: http://10.110.20.191:8080/api-gateway-engine/
second, service providers
Service Provider Address: http://10.110.20.191:8080/DemoWeb/, provided by Rest Services have a 2-second delay:
- /demoweb/jsp/springjson/ajaxget.jsp, click to go in, see the function button is rest link
- /demoweb/jsp/springjson/ajaxpost1.jsp, click to go in, see the function button is rest link
- /demoweb/jsp/springjson/ajaxpost2.jsp, click to go in, see the function button is rest link
- /demoweb/rest/springjson/showshop.do, it's just a rest link.
- /demoweb/rest/springjson/showuserlist.do, it's just a rest link.
1. Get method
Access address:/demoweb/jsp/springjson/ajaxget.jsp, Button link is the rest service
/ajaxget.do::jsonparams:param11=val11,param12=val12,param21=val21,param22=val22
/ajaxget.do::jsonresbean:httpresults [Result11=val11, Result12=val12, Result21=val21, Result22=val22]
2. Post method
Access address:/demoweb/jsp/springjson/ajaxpost1.jsp, Button link is the rest service
/ajaxpost1.do::jsonparams:httpparams [Param11=val11, Param12=val12, Param21=val21, Param22=val22]
/ajaxpost1.do::jsonresbean:httpresults [Result11=val11, Result12=val12, Result21=val21, Result22=val22]
3. Post method
Access address:/demoweb/jsp/springjson/ajaxpost2.jsp, Button link is the rest service
/ajaxpost2.do::jsonparams:{param11=val11, param12=val12, Param21=val21, param22=val22}
/ajaxpost2.do::jsonresbean:httpresults [Result11=val11, Result12=val12, Result21=val21, Result22=val22]
4. Single Object return
/demoweb/rest/springjson/showshop.do, a link is a rest service that returns a single JSON object without parameters
5. Multi-Object return
/demoweb/rest/springjson/showuserlist.do, a link is a rest service that returns a single JSON object without parameters
Api-gateway Practice (8) New service Gateway-Test release (server Side API)