STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
backend.routers.configs_store Namespace Reference

Classes

class  SaveRequest

Functions

 list_configs (Request request)
 get_config (str slug, Request request)
 save_config (SaveRequest body, Request request)
 delete_config (str slug, Request request)

Variables

 router = APIRouter(prefix="/api/configs", tags=["configs"])

Detailed Description

Per-user named config library. `/api/configs` CRUD.

The stored payload is an engine design: `{"input": <PintleEngineConfig>,
"output": <last results>}`. The store itself is payload-agnostic -- the frontend
decides what goes in; load hands the blob back and the UI rehydrates it.

Identity is X-Auth-Email (from Caddy) with a `local` dev fallback -- there is no
gating here, only whose folder to use. See backend/userdata.py.

Function Documentation

◆ delete_config()

backend.routers.configs_store.delete_config ( str slug,
Request request )

Definition at line 50 of file configs_store.py.

◆ get_config()

backend.routers.configs_store.get_config ( str slug,
Request request )

Definition at line 31 of file configs_store.py.

◆ list_configs()

backend.routers.configs_store.list_configs ( Request request)
Saved configs for the caller, newest first (metadata only).

Definition at line 25 of file configs_store.py.

◆ save_config()

backend.routers.configs_store.save_config ( SaveRequest body,
Request request )
Create or overwrite a named config for the caller.

Definition at line 39 of file configs_store.py.

Variable Documentation

◆ router

backend.routers.configs_store.router = APIRouter(prefix="/api/configs", tags=["configs"])

Definition at line 16 of file configs_store.py.