From 33dc210452c0809fd2c7b7d660cc8e18e8f07758 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sun, 27 Dec 2020 13:43:56 +0200 Subject: [PATCH] dspace_statistics_api/docs/openapi.json: Minor edit Better to leave the version in there because Swagger Editor doesn't like it without. Also, change the example page parameter for POSTing to /items and /collections, as it doesn't make sense to start on a later page if we have less items than our limit. --- dspace_statistics_api/docs/openapi.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dspace_statistics_api/docs/openapi.json b/dspace_statistics_api/docs/openapi.json index 86eaa78..0f9278a 100644 --- a/dspace_statistics_api/docs/openapi.json +++ b/dspace_statistics_api/docs/openapi.json @@ -1,6 +1,7 @@ { "openapi": "3.0.3", "info": { + "version": "1.4.0", "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": { @@ -141,7 +142,7 @@ }, "example": { "limit": 100, - "page": 5, + "page": 0, "dateFrom": "2020-01-01T00:00:00Z", "dateTo": "2020-12-31T00:00:00Z", "items": [ @@ -501,7 +502,7 @@ }, "example": { "limit": 100, - "page": 2, + "page": 0, "dateFrom": "2020-01-01T00:00:00Z", "dateTo": "2020-12-31T00:00:00Z", "collections": [