kong start
curl -i -X POST \
--url http://localhost:8001/apis/ \
--data 'name=mockbin' \
--data 'target_url=http://mockbin.com/' \
--data 'public_dns=mockbin.com'
# After we get the APIs we pipe to JQ for the data and sed to strip double quotes
export APIID=$( curl -s http://localhost:8001/apis/ | jq .data[0].id | sed "s/\"//g")
curl -X POST http://localhost:8001/plugins_configurations/ \
--data "name=cors" \
--data "api_id=$APIID"
siege -v -H "host:mockbin.com" http://localhost:8000/