Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Become a King with Kong

ctranxuan
November 17, 2015

Become a King with Kong

Sotfware is eating the world; APIs are eating software. APIs are everywhere. How to manage an API publicly exposed? How to secure it? How to control it? So many questions that Kong (https://getkong.org/) can answer in a few REST call.
Kong is a platform to manage and secure APIs and micro-services. Let's discover how it can help!

ctranxuan

November 17, 2015
Tweet

More Decks by ctranxuan

Other Decks in Programming

Transcript

  1. curl -i -X POST --url 'http://localhost:8001/apis/' \ --data 'name=chuckapi' \

    --data 'upstream_url=http://chuckapi.io:8080/' --data 'request_path=/api/quote/' curl -i -X GET --url 'http://kong.chuckapi.io:8000/api/quote' curl -X POST 'http://localhost:8001/apis/chuckapi/plugins' --data "name=cors" \ --data "config.methods=GET" curl -X POST 'http://localhost:8001/apis/chuckapi/plugins' --data "name=rate-limiting" \ --data "config.minute=5" curl -i -X GET --url 'http://kong.chuckapi.io:8000/api/quote' curl -X POST 'http://localhost:8001/apis/chuckapi/plugins' --data "name=key-auth" curl -i -X GET --url 'http://kong.chuckapi.io:8000/api/quote' curl -X POST 'http://localhost:8001/consumers/' --data "username=bob" \ --data "[email protected]" curl -X POST 'http://localhost:8001/consumers/bob/key-auth' \ --data 'key=abcd123' curl -i -X GET --url 'http://kong.chuckapi.io:8000/api/quote?apikey=abcd123' curl -i -X GET --url 'http://kong.chuckapi.io:8000/api/quote' -H 'apikey: abcd123'