curl -i -X POST http://localhost:8001/services -d 'name=admin-service' -d 'url=http://kong_kong:8001'
curl -i -X POST http://localhost:8001/services/admin-service/routes -d 'paths[]=/admin' -d 'name=admin-route'
curl -i -X POST http://localhost:8001/services -d 'name=konga-service' -d 'url=http://konga_konga:1337'
curl -i -X POST http://localhost:8001/services/konga-service/routes -d 'paths[]=/konga' -d 'name=konga-route'
add a dummy service if needed
curl http://localhost:8001/services -d name=acme-dummy -d url=http://127.0.0.1:65535 --header "apikey: "
add a dummy route if needed
curl http://localhost:8001/routes -d name=acme-dummy -d paths[]=/.well-known/acme-challenge -d service.name=acme-dummy --header "apikey: "
curl http://localhost:8001/plugins -d name=acme -d [email protected] -d config.tos_accepted=true -d config.domains[]=superapi-stresstest.codeoffice.net -d config.storage=kong
curl http://localhost:8001/routes -d name=superapi-web-acme -d hosts[]=superapi-stresstest.codeoffice.net -d paths[]=/.well-known/acme-challenge -d service.name=acme-dummy
User can also use this endpoint to force "renew" a certificate
curl http://localhost:8001/acme -d host=superapi-stresstest.codeoffice.net
Create a Consumer for admin
curl -i -X POST --url http://localhost:8001/consumers/ --data "username=admin"
Provision key credentials for your Consumer admin
curl -i -X POST --url http://localhost:8001/consumers/admin/key-auth/ --data 'key=ENTER_KEY_HERE'
Verify that your Consumer credentials are valid
curl -i -X GET --url http://localhost:8001 --header "Host: example.com" --header "apikey: ENTER_KEY_HERE"