JeroenDeDauw / QueryrAPI

🖹 REST API for Wikibase data
https://wikibase.consulting
7 stars 0 forks source link

Deteremine how to support multiple response formats #39

Open JeroenDeDauw opened 8 years ago

JeroenDeDauw commented 8 years ago

The way GitHub does this using the request Accept header seems nice. For QueryR this would mean:

Default format using one of:

application/json
application/vnd.queryr+json

Explicit version specification (solves part of #1):

application/vnd.queryr.v1+json

Specifying alternate formats:

application/vnd.queryr.v1.jsonld+json

Or should the above better be done as follows? (Might be answered in this RFC)

application/vnd.queryr.v1+jsonld

The Accept header would be the only way to specify the response format.

Any alternate suggestions?