Kong API Gateway fetch custom configuration from Service

Hi,

We have added a custom configuration in Kong Service API:

{
“requests”: [
{
“env”: "dev,
“commands”: [
{
“description”: "Standard Service for demo,
“url”: “http://localhost:8001/services/dem-service”,
“alternateurl”: “https://yahoo.com”,
“verb”: “PUT”,
“data”: {
“name”: “demo-api-service”,
“url”: “https://www.google.com”,
“id”: “d78984f5-8922-4234-bd05-1142712d78f5”
}
}
]
}
]
}

How do I fetch this custom configuration (alternateurl) in my plugin code?


© 2019 Kong Inc.    Terms  •  Privacy  •  FAQ