RigInboundGateway.ApiProxy.Router (Reactive Interaction Gateway v3.0.0-alpha.2) View Source

Provides middleware proxy for incoming REST requests at specific endpoints. Initial API definitions are loaded from Phoenix Presence under topic "proxy". Matches all incoming HTTP requests and checks if such endpoint is defined in any API. If endpoint needs authentication, it is automatically triggered. Valid HTTP requests are forwarded to given service and their response is sent back to client.

Link to this section Summary

Functions

Callback implementation for Plug.call/2.

Returns module configuration.

Callback implementation for Plug.init/1.

Link to this section Functions

Callback implementation for Plug.call/2.

Specs

config() :: any()

Returns module configuration.

If application environment contains values in Keyword or Map struct, defaults from macro usage will be recursively merged with application configuration.

If one of the configuration parameters does not exist or can not be resolved, raises ArgumentError.

Callback implementation for Plug.init/1.