EUDAT-B2SHARE / b2share

B2SHARE software for the EUDAT CDI services.
https://b2share.eudat.eu
GNU General Public License v2.0
35 stars 33 forks source link

Support machine readable formats for record PIDs #1174

Open emanueldima opened 8 years ago

emanueldima commented 8 years ago

Currently a PID resolves to the record URL page (the /records/ID, not /api/records/ID). The endpoint only supports html output, which is not optimal for machines to read. We must find a way to support machine readable formats.

The simplest solution is to add support for json outputs when the Accept header demands it.

lnielsen commented 8 years ago

FYI for DOIs the resolver can take care of it for you: http://citation.crosscite.org/docs.html + https://mds.datacite.org/static/apidoc#tocAnchor-22