Skip to main content

handle_load_lib

Function handle_load_lib 

Source
pub async fn handle_load_lib(
    req: HttpRequest,
    body: String,
    state: Data<AppState>,
) -> Result<HttpResponse, HaystackError>
Expand description

POST /api/loadLib — load a library from Xeto source text.

Request grid must have name (Str) and source (Str) columns. Returns a single-row grid with loaded (library name) and specs (comma-separated list of loaded spec qualified names).