Configure Routes and Upstreams
Once you have created an API instance in the API Gateway, the next step is adding and editing routes to define how your API handles incoming requests.
Edit Routes
1. In the DCD, go to Menu > Network Services > API Gateway.
2. In the list of created instances, choose an instance and from the OPTIONS column, select Edit routes.

3. Enter the following details in the Routes window:
Route Properties:
Route name: Provide an appropriate name.
Path: Define the endpoint for the route.
Methods: Choose the HTTP method (GET, POST, PUT, DELETE) the route will support.
Web Socket: on/off
Protocol: HTTP

Upstreams:
Host: Enter IP or public URL
Load balancer Algorithm: Choose between roundrobin and least_connections
Weight (optional)
Scheme: Choose a scheme, such as HTTPS, GRPC, etc.
Port
4. Click Save to create the route.

Last updated
Was this helpful?