This file contains ready-to-use curl commands and raw request URLs for the gateway.
BASE_URL="http://localhost"curl -s "$BASE_URL/"GET http://localhost/
curl -s "$BASE_URL/car/route/v1/driving/7.421,43.729;7.424,43.733?overview=false"GET http://localhost/car/route/v1/driving/7.421,43.729;7.424,43.733?overview=false
curl -s "$BASE_URL/walk/route/v1/walking/7.421,43.729;7.424,43.733?overview=false"GET http://localhost/walk/route/v1/walking/7.421,43.729;7.424,43.733?overview=false
curl -s "$BASE_URL/car/route/v1/driving/13.388599,52.517037;13.397634,52.529407?geometries=geojson"GET http://localhost/car/route/v1/driving/13.388599,52.517037;13.397634,52.529407?geometries=geojson
curl -s "$BASE_URL/car/table/v1/driving/7.421,43.729;7.424,43.733;7.418,43.732?annotations=duration,distance"GET http://localhost/car/table/v1/driving/7.421,43.729;7.424,43.733;7.418,43.732?annotations=duration,distance
curl -s "$BASE_URL/walk/table/v1/walking/7.421,43.729;7.424,43.733;7.418,43.732?annotations=duration,distance"GET http://localhost/walk/table/v1/walking/7.421,43.729;7.424,43.733;7.418,43.732?annotations=duration,distance
Use jq for formatted output.
curl -s "$BASE_URL/car/route/v1/driving/7.421,43.729;7.424,43.733?overview=false" | jq .
curl -s "$BASE_URL/car/table/v1/driving/7.421,43.729;7.424,43.733;7.418,43.732?annotations=duration,distance" | jq .You can bypass gateway and call direct containers.
curl -s "http://localhost:5000/route/v1/driving/7.421,43.729;7.424,43.733?overview=false"curl -s "http://localhost:5002/route/v1/walking/7.421,43.729;7.424,43.733?overview=false"