Skip to content

Commit

Permalink
dspace_statistics_api/docs/openapi.json: Minor edit
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alanorth committed Dec 27, 2020
1 parent 282d5f6 commit 33dc210
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dspace_statistics_api/docs/openapi.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down Expand Up @@ -141,7 +142,7 @@
},
"example": {
"limit": 100,
"page": 5,
"page": 0,
"dateFrom": "2020-01-01T00:00:00Z",
"dateTo": "2020-12-31T00:00:00Z",
"items": [
Expand Down Expand Up @@ -501,7 +502,7 @@
},
"example": {
"limit": 100,
"page": 2,
"page": 0,
"dateFrom": "2020-01-01T00:00:00Z",
"dateTo": "2020-12-31T00:00:00Z",
"collections": [
Expand Down

0 comments on commit 33dc210

Please sign in to comment.