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

Become a King with Kong @ DevoxxFR 2016

Become a King with Kong @ DevoxxFR 2016

It's the APIs age! APIs are everywhere! How to manage an API? How to secure it? How to extend it? So many issues Kong solves in a few REST calls!

ctranxuan

April 21, 2016
Tweet

More Decks by ctranxuan

Other Decks in Programming

Transcript

  1. Become a King Become a King with Kong with Kong

    @StreamdataIO @ctranxuan #DevoxxFR
  2. What is Kong? What is Kong? ... an API platform

    ... an API platform #DevoxxFR
  3. ... you can develop ... you can develop your own...

    your own... Plugins oriented platform Plugins oriented platform #DevoxxFR
  4. 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'