Skip to content

ffl_core.api.action_catalog

Source: apps/ffl_core/ffl_core/api/action_catalog.py · 1 endpoint(s)

Generated by make api-docs — do not edit by hand.

list_actions

POST /api/method/ffl_core.api.action_catalog.list_actions

Auth (derived from code): Any authenticated user — no explicit role gate at function entry (deliberate open reads document this in Permissions).

Search the server endpoints the signed-in user can run, across every installed app.

Reads the api_catalog.json each app ships (core apps and installed extensions), drops guest endpoints (webhooks), and keeps the rows whose derived gate the caller passes: a role list the caller holds some role of, or a DocType permission the caller has. Rows only the call itself can decide (soft filters, runtime role lists, an extension switch, no gate at entry) are kept with runnable "checked at call time". The endpoint still checks the caller when it is called.

arg type required default description
query string | null no None Words matched against the dotted path, argument names and summary; best matches first.
module string | null no None A dotted prefix, e.g. "ffl_integrations.gunbroker"; only endpoints under it.
method string | null no None One exact dotted path; returns that endpoint's full row (description, Returns text and every argument's description) or an empty list.
limit integer no DEFAULT_LIMIT Rows returned, 1 to 100 (default 25).

Returns: list: Rows of {method, module, summary, args [{name, type, required}], http, roles or perm or gate, switch (when an extension switch applies), runnable (true or "checked at call time")}; with method, at most one row that also carries description, returns, source and each argument's desc.

Permissions: Any signed-in desk user (System User); each user sees only the endpoints their roles and DocType permissions reach.

apps/ffl_core/ffl_core/api/action_catalog.py:142