cmr-stac
cmr-stac copied to clipboard
CMR-10151: Add Collection Search Endpoint
Adding support for collection-search:
-
Adds collection search extension to conformsTo
-
Initially, I considered adding a /collections/search route for searching collections. While this is a valid approach, it's more aligned with STAC browser to implement collection search directly at the /collections level. (see discussion here).
-
A user can now search for collection based on spatial and temporal fields.
-
In STAC browser there is now a
Search for Collectionstab -
Collection Search though a
CURL- GET:
curl "http://localhost:3000/stac/LPCLOUD/collections?bbox=-180,-90,180,90" - POST :
curl -X POST "http://localhost:3000/stac/PROVIDER_ID/collections" \ -H "Content-Type: application/json" \ -d `{ "bbox": [-180, -90, 180, 90], "datetime": "2021-01-01T00:00:00Z/2021-12-31T23:59:59Z", "limit": 10}'
- GET:
Also looks like there is a snyk vulnerability that needs to be addressed.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 87.56%. Comparing base (
b3b24cf) to head (9b1b24e). Report is 70 commits behind head on master.
Additional details and impacted files
@@ Coverage Diff @@
## master #349 +/- ##
==========================================
- Coverage 88.77% 87.56% -1.22%
==========================================
Files 29 23 -6
Lines 1515 1094 -421
Branches 298 238 -60
==========================================
- Hits 1345 958 -387
+ Misses 161 136 -25
+ Partials 9 0 -9
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.