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

Become a King with Kong @ BreizhCamp

Become a King with Kong @ BreizhCamp

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

March 24, 2016
Tweet

More Decks by ctranxuan

Other Decks in Programming

Transcript

  1. BreizhCamp 2016 #getkong #BzhCmp Become a King Become a King

    with Kong with Kong @StreamdataIO @ctranxuan
  2. ... you can develop ... you can develop your own...

    your own... . . Plugins oriented platform Plugins oriented platform
  3. 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' Demo Demo