API Gateway
Universal API gateway for connecting to any REST API with a unified interface.
Usage
/api-gateway call <METHOD> <URL> [--headers key=value] [--body <json>]
/api-gateway register <name> <METHOD> <URL> [--headers key=value] [--description <text>]
/api-gateway list [--filter <name>]
/api-gateway chain <step1> -> <step2> -> <step3>
Actions
- call - Make a single API call with method, URL, headers, and body
- register - Save a named API endpoint for reuse
- list - List all registered API endpoints
- chain - Chain multiple API calls, passing data between steps
Examples
/api-gateway call GET https://api.github.com/repos/nodejs/node
/api-gateway call POST https://httpbin.org/post --body '{"key": "value"}'
/api-gateway register weather GET https://api.openweathermap.org/data/2.5/weather?q={city}
/api-gateway chain weather:city=London -> transform:extract=temp