Skip to content

Commit

Permalink
Add response_class for /api/v1/construct-query
Browse files Browse the repository at this point in the history
  • Loading branch information
edmondchuc committed Jul 10, 2023
1 parent 1664475 commit ddd5e45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vocexcel/web/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit ddd5e45

Please sign in to comment.