Create KONG Gateway routes
Apr 19, 2021
Add a Service
curl -i -X POST http://localhost:8001/services \
— data name=odiapi \
— data url=’http://192.168.8.104:9090'
Add a Route
curl -i -X POST http://localhost:8001/services/odiapi/routes \
— data ‘paths[]=/odi’ \
— data name=odiapi
Verify the Route is forwarding requests to the Service
By default, Kong Gateway handles proxy requests on port :8000
.
From a web browser, enter http://localhost:8000/odi
.