You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you would like to join in the discussion on how we continue developing the project, or give us feedback, then join us on the #api-gateway-beta channel on the Scaleway Community Slack.
Once done, the following steps can be run from the root of the project, and will deploy the gateway as a Serverless Container in your Scaleway account.
For more information on the deployment process, see the deployment docs.
Add a route
To check your gateway is working, you can add and remove a route:
# Check no routes are configured initiallyscwgw route ls
# Check the response directly from a given URLTARGET_URL=https://worldtimeapi.org/api/timezone/Europe/Pariscurl $TARGET_URL
# Add a route to this URL in your gatewayscwgw route add /time $TARGET_URL
# List routes to see that it's been configuredscwgw route ls
# Curl the URL via the gatewayGATEWAY_ENDPOINT=$(scwgw infra endpoint)curl https://${GATEWAY_ENDPOINT}/time
Delete your gateway
To delete your gateway, you can run:
scwgw infra delete
π Contributing
We welcome all contributions to our open-source projects, please see our contributing guidelines.
Do not hesitate to raise issues and pull requests we will have a look at them.