-
Notifications
You must be signed in to change notification settings - Fork 0
Example
cnrdh edited this page Aug 8, 2013
·
2 revisions
Examples for /dataset API (discovery level metadata about a dataset)
- http://api.npolar.no/dataset/025b82e5-4a5a-558f-b021-17c1a60f0922.json
- http://api.npolar.no/dataset/025b82e5-4a5a-558f-b021-17c1a60f0922.dif
- http://api.npolar.no/dataset/025b82e5-4a5a-558f-b021-17c1a60f0922.iso
$ curl -X GET http://api.npolar.no/dataset/025b82e5-4a5a-558f-b021-17c1a60f0922 -H "Accept: application/json"```
$ curl -X GET http://api.npolar.no/dataset/025b82e5-4a5a-558f-b021-17c1a60f0922 -H "Accept: application/xml"
$ curl -X GET http://api.npolar.no/dataset/025b82e5-4a5a-558f-b021-17c1a60f0922 -H "Accept: application/atom+xml"
$ curl -iX HEAD http://api.npolar.no/dataset/025b82e5-4a5a-558f-b021-17c1a60f0922
$ curl -niX POST https://api.npolar.no/dataset -d@/path/dataset.json -H "Content-Type: application/json"
$ curl -niXPUT https://api.npolar.no/dataset/025b82e5-4a5a-558f-b021-17c1a60f0922 -d@/path/dataset-.json -H "Content-Type: application/json"
Publishing multiple DIF XML, wrapped in OAI-PMH
$ curl -niX POST https://api.npolar.no/dataset-d@seed/dataset/ris-dif.xml -H "Content-Type: application/xml"