Ragex.API.Server (Ragex v0.17.3)

View Source

Lightweight HTTP server for the Ragex REST API bridge.

Wraps Bandit with the Ragex.API.Router plug. Started optionally when config :ragex, :start_api is true, or manually via mix ragex.serve.

Configuration

config :ragex,
  start_api: true,
  api_port: 4321

Manual Start

Ragex.API.Server.start_link(port: 4321)

Summary

Functions

Start the HTTP server.

Functions

start_link(opts \\ [])

Start the HTTP server.

Options

  • :port -- TCP port (default: 4321, overridden by config or env)