Skip to content

Commit

Permalink
Fix examples for api_responses. Fix #13
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Nov 28, 2023
1 parent b6cd6fd commit 5b06317
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/rdflib_endpoint/sparql_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,8 @@
200: {
"description": "SPARQL query results",
"content": {
"application/sparql-results+json": {
"results": {"bindings": []},
"head": {"vars": []},
},
"application/json": {
"results": {"bindings": []},
"head": {"vars": []},
},
"application/sparql-results+json": {"example": {"results": {"bindings": []}, "head": {"vars": []}}},
"application/json": {"example": {"results": {"bindings": []}, "head": {"vars": []}}},
"text/csv": {"example": "s,p,o"},
"application/sparql-results+csv": {"example": "s,p,o"},
"text/turtle": {"example": "service description"},
Expand Down Expand Up @@ -188,6 +182,9 @@ def __init__(
self.enable_update = enable_update
self.favicon = favicon

# if example_query:
# logging.warning("DEPRECATED: the param example_query will be soon removed from future versions. Use examples_queries instead")

# Instantiate APIRouter
super().__init__(
*args,
Expand Down

0 comments on commit 5b06317

Please sign in to comment.