Skip to content

Commit f2e361c

Browse files
Neeraj SirdeshmukhNeeraj Sirdeshmukh
authored andcommitted
Added proper value for 'collections' parameter in the next page link in the result of a GET request
1 parent ac22122 commit f2e361c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
99

1010
### Added
1111

12+
- Added proper value for 'collections' parameter in the next page link in the result of a GET request
1213
- Added mappings for 'id' and 'collection' for default sort keys
1314
- Added STAC_API_VERSION as an environment variable to the serverless.yml file
1415
- Added STAC_API_VERSION to display on the API landing page within the api.js file under src/lib/api.js in the collectionsToCatalogLinks function

src/lib/api.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,8 @@ const buildPaginationLinks = function (limit, parameters, bbox, intersects, endp
421421
}
422422
}
423423
value = sortFields.join(',')
424+
} else if (p === 'collections') {
425+
value = value.toString()
424426
} else {
425427
value = JSON.stringify(value)
426428
}

0 commit comments

Comments
 (0)