-
Notifications
You must be signed in to change notification settings - Fork 1
Axway amplify Unified Catalog integration with Kong Community edition
rathna-axway edited this page Feb 4, 2021
·
10 revisions
Step by step guide to setup and test Kong Community edition and Axway amplify
curl -i -X POST \
--url http://localhost:8001/services/ \
--data 'name=petstore' \
--data 'url=http://petstore.swagger.io' \
--data 'tags=spec_local_petstore.json'
curl -i -X POST \
http://localhost:8001/services/petstore/routes \
--data 'paths[]=/petstore' \
--data name=petstore
curl -i -X POST \
--url http://localhost:8001/routes/petstore/plugins/ \
--data 'name=key-auth'
curl --location --request POST 'http://localhost:8001/routes/petstore/plugins' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "acl",
"config": {
"allow": [
"amplify.group1"
]
}
}'
curl -X POST http://localhost:8001/plugins/ \
--data "name=http-log" \
--data "config.http_endpoint=http://host.docker.internal:9000/requestlogs" \
--data "config.method=POST" \
--data "config.timeout=1000" \
--data "config.keepalive=1000" \
--data "config.flush_timeout=2" \
--data "config.retry_count=15"
curl -X POST http://localhost:8001/plugins/ \
--data "name=correlation-id" \
--data "config.header_name=Kong-Request-ID" \
--data "config.generator=uuid" \
--data "config.echo_downstream=false"
$make build-trace
$./bin/run-trace
- Traceability agent creates service and catalog.
- Subscribe to catalog API
- It creates an application, apikey and assign appropriate acl
$make build-disc
./bin/run-disc
curl --location --request GET 'http://localhost:8000/petstore/v2/store/inventory' \
--header 'apikey: 123456'