mirror of
https://github.com/ilri/dspace-statistics-api.git
synced 2024-11-17 03:47:09 +01:00
openapi.json: Set the API version from config
We don't need to hard code this in the JSON anymore since we are reading and modifying it now for the server config anyways.
This commit is contained in:
parent
2567bb8604
commit
05e0e8bdca
@ -58,6 +58,9 @@ class OpenAPIJSONResource:
|
||||
if DSPACE_STATISTICS_API_URL != "":
|
||||
data["servers"] = [{"url": DSPACE_STATISTICS_API_URL}]
|
||||
|
||||
# Set the version in the schema so Swagger UI can display it
|
||||
data["info"]["version"] = VERSION
|
||||
|
||||
resp.body = json.dumps(data)
|
||||
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
{
|
||||
"openapi": "3.0.3",
|
||||
"info": {
|
||||
"version": "1.4.0-dev",
|
||||
"title": "DSpace Statistics API",
|
||||
"description": "A [Falcon-based](https://falcon.readthedocs.io/) web application to make DSpace's item, community, and collection statistics available via a simple REST API. This Swagger interface is powered by [falcon-swagger-ui](https://github.com/rdidyk/falcon-swagger-ui).",
|
||||
"license": {
|
||||
|
Loading…
Reference in New Issue
Block a user