bmarwell / webtrees-jsonld

Implementation for application/ld+json-output in webtrees' person/individual view.
GNU General Public License v3.0
2 stars 0 forks source link

Respond to Accept-Header #33

Open bmarwell opened 9 years ago

bmarwell commented 9 years ago

Example on Wikipedia/JSON-LD:

curl -i -L -H "Accept: application/ld+json" "$URL"

Should respond with:

Content-Type: application/ld+json

And then only send a json object, without any html elements. This needs to wait for WT 1.7 due to missing API methods.