mirror of
https://github.com/ilri/dspace-statistics-api.git
synced 2025-09-17 08:56:42 +02:00
src/dspace_statistics_api/app.py: OpenAPI json path
This commit is contained in:
@@ -45,7 +45,7 @@ class OpenAPIJSONResource:
|
|||||||
def on_get(self, req, resp):
|
def on_get(self, req, resp):
|
||||||
resp.status = falcon.HTTP_200
|
resp.status = falcon.HTTP_200
|
||||||
resp.content_type = "text/html"
|
resp.content_type = "text/html"
|
||||||
with open("dspace_statistics_api/docs/openapi.json", "r") as f:
|
with open("src/dspace_statistics_api/docs/openapi.json", "r") as f:
|
||||||
# Load the openapi.json schema
|
# Load the openapi.json schema
|
||||||
data = json.load(f)
|
data = json.load(f)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user