Catalog REST for data providers ECHO Technical Interchange 04/30/13 3:15pm EST Doug Newman
Rationale Troubleshooting your data issues Managing your data Surgical fixes (REST providers only) On a provider, dataset and granule level
Tools to follow along Firefox Rest Client add-on Chrome Advanced Rest Client add-on IE – on your own Command line curl
Things you need to know HTTP REST (GET, POST, PUT, DELETE) XML ECHO ingest
The key to the kingdom (tokens) Request: POST Body: ops urs username ops urs password your id your IP address Headers: Content-Type: application/xml Response: XXDD5E8D-039C-6386-FF50-D8DC ops urs username your id your IP address
Your provider Requests: GET PUT Headers: Accept: application/xml Content-Type: application/xml Echo-Token: your token value
Your datasets Requests: GET /datasets/ PUT /datasets/ A note about encoding: you may have to url-encode your dataset id, etc (not with FF Rest Client) Headers: Accept: application/xml Content-Type: application/xml Echo-Token: your token value
Your granules Requests: GET /granules/ PUT /granules/ DELETE /granules/ A note about encoding: you may have to url-encode your granule id etc (not with FF Rest Client) Headers: Accept: application/xml Content-Type: application/xml Echo-Token: your token value
Visibility to your users datasets.xml datasets.xml?dataset_id=my_dataset_id datasets.xml?provider=my_provider datasets.xml?provider=my_provider&page_size=20&page_num=2 granules.xml granules.xml?granule_ur=my_granule_ur granules.xml?dataset_id=my_dataset_id granules.xml?dataset_id=my_dataset_id&page_size=20&page_num=2
With great power… I can do that? YES
Questions?