Skip to main content

Route and Service

Configure Service.

curl -i -X POST http://localhost:8001/services \
--data name=httpbin \
--data url='http://httpbin.org'

Verify the service’s endpoint.

curl -i http://localhost:8001/services/httpbin

Configure Route.

curl -i -X POST http://localhost:8001/services/httpbin/routes \
--data 'paths[]=/get' \
--data 'name=get' \
--data 'strip_path=false'

Verify the Route is forwarding requests to the Service.

curl -i -X GET http://localhost:8000/get