Api-gateway Practice (8) New service Gateway-Test release (server Side API)

Source: Internet
Author: User
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:

    1. /demoweb/jsp/springjson/ajaxget.jsp, click to go in, see the function button is rest link
    2. /demoweb/jsp/springjson/ajaxpost1.jsp, click to go in, see the function button is rest link
    3. /demoweb/jsp/springjson/ajaxpost2.jsp, click to go in, see the function button is rest link
    4. /demoweb/rest/springjson/showshop.do, it's just a rest link.
    5. /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)

Large-Scale Price Reduction
  • 59% Max. and 23% Avg.
  • Price Reduction for Core Products
  • Price Reduction in Multiple Regions
undefined. /
Connect with us on Discord
  • Secure, anonymous group chat without disturbance
  • Stay updated on campaigns, new products, and more
  • Support for all your questions
undefined. /
Free Tier
  • Start free from ECS to Big Data
  • Get Started in 3 Simple Steps
  • Try ECS t5 1C1G
undefined. /

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.