Protect your services with an authentication layer.
Manage, throttle, and restrict inbound and outbound API traffic.
Visualize, inspect, and monitor APIs and microservice traffic.
Transform requests and responses on the fly.
Stream request and response data to logging solutions.
Invoke serverless functions via APIs.
Get Started in 1 minute
Add your Service and Route on Kong
After installing and starting Kong, use the Admin API on port 8001 to add a new Service and Route. In this example, Kong will reverse proxy every incoming request with the specified incoming host to the associated upstream URL. You can implement very complex routing mechanisms beyond simple host matching.
Add Plugins on the Service
Then add extra functionality by using Kong Plugins. You can also create your own plugins!
Make a Request
...and then you can consume the Service on port 8000 by requesting the specified host. In production setup the public host DNS to point to your Kong cluster. Kong supports much more functionality, explore the Hub and the documentation.
$ curl -i -X POST \ --url http://localhost:8001/services/ \ --data 'name=example-service' \ --data 'url=http://example.com' $ curl -i -X POST \ --url http://localhost:8001/services/example-service/routes \ --data 'hosts=example.com' \
$ curl -i -X POST \ --url http://localhost:8001/services/example-service/plugins/ \ --data 'name=rate-limiting' \ --data 'config.minute=100'
$ curl -i -X GET \ --url http://localhost:8000/ \ --header 'Host: example.com'
Community Driven. Join the Kong Movement
Have an issue or question?
Join Kong Nation to research API gateway topics, post questions, and discuss all things Kong.
Need more power?Explore Kong Enterprise