Rgate is a simple API Gateway which routes HTTP traffic to configured upstreams.
For example, given the below config:
rgate:
routes:
- path_prefix: /public-api/posts
backend: https://gorest.co.in
default_response:
body: "This is not reachable"
status_code: 403
Any api call makes to this service http://localhost:8080/public-api/posts will be routed to https://gorest.co.in/public-api/posts, for all other API calls, the default_response will be returned.