In this section, you’ll be adding your API to Kong Enterprise. This is the first
step to having Kong Enterprise manage your API. For purposes of this Getting
Started guide, we suggest adding the Mockbin API to Kong, as Mockbin
is helpful for learning how Kong Enterprise proxies your API requests.
Kong exposes a RESTful Admin API on ports :8001 and :8444 and
Kong Manager on ports :8002 and :8445 for managing the configuration of
your Kong instance or cluster. Kong Manager makes requests to the Admin API,
and you can use either interface for configuring and managing Kong Enterprise.
1. Add Your API Using the Admin API or Kong Manager
If you’d like to use the Admin API, issue the following cURL request to add
your first API (Mockbin) to Kong Enterprise:
A successful response means Kong is now forwarding requests made to
http://localhost:8000 to the upstream_url we configured in step #1,
and is forwarding the response back to us. Kong knows to do this through
the header defined in the above cURL request Host: example.com
Now that you’ve added your API to Kong Enterprise, let’s learn how to enable plugins.