From ddd5e45ef0d0d07cb41edd8aaa1624576d677518 Mon Sep 17 00:00:00 2001 From: Edmond Chuc Date: Mon, 10 Jul 2023 20:38:33 +1000 Subject: [PATCH] Add response_class for /api/v1/construct-query --- vocexcel/web/router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vocexcel/web/router.py b/vocexcel/web/router.py index a11f698..03caf58 100644 --- a/vocexcel/web/router.py +++ b/vocexcel/web/router.py @@ -49,7 +49,7 @@ def format_route(payload: str = Body(media_type="application/n-triples")): return graph.serialize(format="longturtle") -@router.get("/construct-query") +@router.get("/construct-query", response_class=PlainTextResponse) def construct_query_route(focus_node_iri: str, depth: int): """Get the SPARQL Construct query for a given focus node IRI and the depth of the blank nodes in the graph closure.""" query = Template(