module WarpEngine::AdminApi
The Admin API: everything the WarpEngine admin does, for programs, under /api/admin/v1. Operations are declared once in the Definitions modules and served three ways: as JSON over HTTP, as an OpenAPI 3.1 document (OpenApi, with an optional Redoc page from DocsPage) and as MCP tools (Mcp).
It is off by default; the host turns it on in the initializer:
WarpEngine.configure do admin_api do enable end end
Callers authenticate with a bearer application token carrying admin scopes (Scopes), or through the hostโs own Authenticator.
Constants
- HEADER
-
The response header that carries the
AdminAPI version. - Result
-
What an operation handler returns: the HTTP
status, thedataof the answer and an optionalmetahash (pagination). Built byContext#ok,Context#createdandContext#no_content. - VERSION
-
The major version of the
AdminAPI, also in the URL prefix and the OpenAPIx-api-version.
Public Class Methods
Source
# File lib/warp_engine/admin_api.rb, line 50 def self.config WarpEngine.config.admin_api end
The hostโs WarpEngine::AdminApi::Configuration, from WarpEngine.config.admin_api.
Source
# File lib/warp_engine/admin_api.rb, line 55 def self.url_path Operation::PREFIX end
The URL prefix every Admin API route lives under: Operation::PREFIX.