Skip to main content

Create Route for HTTPBIN Service

Now we have created the HTTPBIN service successfully, specifying the upstream URL. But we don't have any routes.

In this section, we'll create a route that returns a JSON string from To create such a route, do the following steps:

  1. Open the API7 Cloud console.
  2. From the left navigation bar, choose API Management, then select Services from the secondary menu.
  3. Click on the name of the HTTPBIN service.
  4. On the service details page, click on the Create Route
  5. Fill the form to create the target route.
    • Set the Path field to /json.
    • Select the Strip Path Prefix option, which means the /v1/json will be rewritten to "/json" before proxying to the backend;
    • Only allow GET method.

Congratulations! You have created the JSON route. Now, let's send some requests to verify if it works!


Send Requests To Verify. Logo

API Management for Modern Architectures with Edge, API Gateway, Kubernetes, and Service Mesh.


API7 Cloud

SOC2 Type IRed Herring

Copyright © APISEVEN Ltd. 2019 – 2024. Apache, Apache APISIX, APISIX, and associated open source project names are trademarks of the

Apache Software Foundation