Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing searchContext removed from core in CUMULUS-3697 #359

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 0 additions & 96 deletions content/granules.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,102 +24,6 @@ $ curl https://example.com/granules --header 'Authorization: Bearer ReplaceWithT
"limit": 1,
"page": 1,
"count": 8,
"searchContext": "%5B%221577836800000%22%5D",
},
"results": [
{
"granuleId": "MOD11A1.A2017137.h20v17.006.2017138085755",
"pdrName": "7970bff5-128a-489f-b43c-de4ad7834ce5.PDR",
"collectionId": "MOD11A1___006",
"status": "completed",
"provider": "LP_TS2_DataPool",
"execution": "https://console.aws.amazon.com/states/home?region=us-east-1#/executions/details/arn:aws:states:us-east-1:123456789012:execution:LpdaacCumulusIngestGranuleStateMachine-N3CLGBXRPAT9:7f071dae1a93c9892272b7fd5",
"files": [
{
"bucket": "cumulus-devseed-protected",
"checksum": 964704694,
"key": "MOD11A1.A2017137.h20v17.006.2017138085755.hdf",
"fileSize": 1447347,
"fileType": "data",
"checksumType": "CKSUM",
"fileName": "MOD11A1.A2017137.h20v17.006.2017138085755.hdf"
},
{
"bucket": "cumulus-devseed-private",
"checksum": 121318124,
"key": "MOD11A1.A2017137.h20v17.006.2017138085755.hdf.met",
"fileSize": 22559,
"fileType": "metadata",
"checksumType": "CKSUM",
"fileName": "MOD11A1.A2017137.h20v17.006.2017138085755.hdf.met"
},
{
"bucket": "cumulus-devseed-private",
"checksum": 2188150664,
"key": "BROWSE.MOD11A1.A2017137.h20v17.006.2017138085755.hdf",
"fileSize": 18118,
"fileType": "data",
"checksumType": "CKSUM",
"fileName": "BROWSE.MOD11A1.A2017137.h20v17.006.2017138085755.hdf"
},
{
"bucket": "cumulus-devseed-public",
"key": "MOD11A1.A2017137.h20v17.006.2017138085755_2.jpg",
"fileType": "browse",
"fileName": "MOD11A1.A2017137.h20v17.006.2017138085755_2.jpg"
},
{
"bucket": "cumulus-devseed-protected",
"key": "MOD11A1.A2017137.h20v17.006.2017138085755.cmr.xml",
"fileType": "metadata",
"fileName": "MOD11A1.A2017137.h20v17.006.2017138085755.cmr.xml"
},
{
"bucket": "cumulus-devseed-public",
"key": "MOD11A1.A2017137.h20v17.006.2017138085755_1.jpg",
"fileType": "browse",
"fileName": "MOD11A1.A2017137.h20v17.006.2017138085755_1.jpg"
}
],
"error": null,
"createdAt": 1513020455831,
"timestamp": 1513020462156,
"published": "https://cmr.uat.earthdata.nasa.gov/search/granules.json?concept_id=G1220753758-CUMULUS",
"duration": 6.325,
"cmrLink": "https://cmr.uat.earthdata.nasa.gov/search/granules.json?concept_id=G1220753758-CUMULUS"
}
]
}
```

## List granules with searchContext

List granules in the Cumulus system with searchContext from a previous query.
Must include all of previous query's `sort`, `order`, or `sort_key` query string parameters.
Must not include `from` and `to` query string parameters.

```endpoint
GET /granules
```

#### Example request

```curl
$ curl https://example.com/granules?searchContext=%5B%221577836800000%22%5D --header 'Authorization: Bearer ReplaceWithTheToken'
```

#### Example response

```json
{
"meta": {
"name": "cumulus-api",
"stack": "lpdaac-cumulus",
"table": "granule",
"limit": 1,
"page": 1,
"count": 8,
"searchContext": "%5B%221606780899999%22%5D",
},
"results": [
{
Expand Down