Skip to main content

Version: 3.2.3.x

Set Up and Launch Your Initial API

This tutorial guides you on how to create a sample API and validate it. You will complete the following steps:

  1. Create a httpbin service, within a route and a upstream that points to httpbin.org.
  2. Publish the service to make the API accessible.
  3. Use cURL to send a test request to see how API7 Enterprise Edition proxies and forwards the request.

Prerequisites

  1. Complete Install API7 Enterprise Edition.
  2. Obtain a User Account with Super Admin or API Provider Role.

Add a Service

  1. Select Services , then click Add Service.
  2. Choose Manually.
  3. Enter httpbin as the Name, then click Next.

Add Service Step 1

  1. Confirm the service name. Host and path prefix configuration is not needed in this tutorial. Click Next.

Add Service Step 2

  1. Choose HTTP as the Upstream Scheme.
  2. Enter httpbin.org as the Upstream URL.
  3. Click Add.

Add Service Step 3

Add a Route

  1. On the Routes table of the service, click Add Route.
  2. Enter getting-started-ip as Route Name, /ip as path, select all as HTTP Methods. Then click Add:

Add Route

Validate

curl "http://127.0.0.1:9080/ip"

The expected response is similar to the following:

{
"origin": "183.94.122.205"
}

API7.ai Logo

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

Product

API7 Cloud

SOC2 Type IIISO 27001HIPAAGDPRRed Herring

Copyright © APISEVEN PTE. LTD 2019 – 2025. Apache, Apache APISIX, APISIX, and associated open source project names are trademarks of the

Apache Software Foundation