ApiManagementConsoleV2 (api_management_console v0.1.1)

Copy Markdown View Source

A Phoenix LiveView library for real-time API route management.

Discover routes, toggle them on/off, enforce via a Plug, with RBAC, audit logs, and a licensing model (Free/PRO).

Installation

Add to your mix.exs:

{:api_management_console, github: "rizwankhalid/api_management_console"}

Usage

use ApiManagementConsoleV2.Router

scope "/" do
  pipe_through [:browser, :route_guard]
  api_console "/admin/api-console"
end

Summary

Functions

Returns all routes defined in the given Phoenix router module.

Returns route paths as formatted strings: "GET /api/users → MyApp.UserController.index"

Functions

list_routes(router_module)

Returns all routes defined in the given Phoenix router module.

Example

routes = ApiManagementConsoleV2.list_routes(MyAppWeb.Router)
Enum.each(routes, &IO.inspect/1)

list_routes_as_strings(router_module)

Returns route paths as formatted strings: "GET /api/users → MyApp.UserController.index"