Notifique.DynamicApi (notifique v0.2.1)

Copy Markdown

Dynamic OpenAPI client built from priv/operations.json at runtime.

Summary

Functions

Builds a nested map of namespaces where leaf values are callable functions.

Invokes a registered operation by dotted path (e.g. "push.getV1PushApps"). Used by the typed Notifique.Generated.Api modules.

Returns the number of registered operations.

Returns all operation paths as dot-separated strings (e.g. "wellKnown.getJwks").

Top-level namespace keys from the registry.

Functions

build(client)

@spec build(Notifique.t()) :: map()

Builds a nested map of namespaces where leaf values are callable functions.

call_operation(client, dotted_path, opts \\ [])

@spec call_operation(Notifique.t(), String.t(), keyword()) ::
  {:ok, term()} | {:error, term()}

Invokes a registered operation by dotted path (e.g. "push.getV1PushApps"). Used by the typed Notifique.Generated.Api modules.

count()

@spec count() :: non_neg_integer()

Returns the number of registered operations.

operation_paths()

@spec operation_paths() :: [String.t()]

Returns all operation paths as dot-separated strings (e.g. "wellKnown.getJwks").

top_level_namespaces()

@spec top_level_namespaces() :: [String.t()]

Top-level namespace keys from the registry.