dm_mac.views.api module

API Views.

async dm_mac.views.api.index() Tuple[Response, int]

API index route.

Returns a placeholder message.

async dm_mac.views.api.machines() Tuple[Response, int]

List all machines and their current status.

Read-only endpoint returning the status of every configured machine, sorted by name. Intended for external consumers (e.g. the Equipment Status Board) to poll or reconcile machine state.

async dm_mac.views.api.reload_users() Tuple[Response, int]

Reload users configuration.

Hot-reloads users.json without requiring a server restart. Returns counts of removed, updated, and added users.