Class: ActionAgent::Api::BaseController

Inherits:
ActionAgent::ApplicationController show all
Defined in:
app/controllers/action_agent/api/base_controller.rb

Overview

Base class for the dashboard's JSON API — everything the React dashboard reads and writes.

Authentication is the host app's (ActionAgent .authentication_method), and so is ownership: owned scopes any dashboard relation to the signed-in user or account depending on what the model declared with owned_by, which is how a single-user install, a per-user install and a multi-tenant platform all read the same controllers.

Note this is not the telemetry ingest endpoint — that authenticates with a bearer token and lives in Api::TracesController.

Method Summary

Methods inherited from ActionAgent::ApplicationController

allow_unauthenticated_access