Skip to main content

handle_spec

Function handle_spec 

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

POST /api/spec — get a single spec by qualified name.

Request grid must have a qname (Str) column with the fully-qualified spec name. Returns a single-row grid with qname, name, lib, base, doc, abstract, and slots (comma-separated slot names).