You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.
I want to introduce this thread to overlap with discussions around data filtering #22, schema filtering #21, response structure #6, and hypermedia #7.
Basics of content negotiation would be, do we offer application/csv, and text/html, as well as applicaiton/json (which is current default).
Advanced would be offering application/vnd.api+json, application/hal+json, or application/vnd.siren+json.
I'm thinking that offering a simple CSV and JSON response for default make sense for newbies. Content negotiation 101. Then we could start loading up some of the more detailed requests, and solving the "return everything" and "return exactly what I want" with introduction of hypermedia type, or even possibly something like application/vnd.hsds+api.
The text was updated successfully, but these errors were encountered:
Have you also considered XML? I think you had mentioned it, or maybe @timgdavies , related to the HSDS spec. I'm not strongly advocating it as we prefer JSON now, just wanted to mention it.
I will revisit the media type formats in the future, but opting to add a simple format property:
- in: query
name: format
description: |-
The data format of the response (csv, json, xml).
schema:
type: string
``
Which will return one of the three formats with CSV being the default for all.
I want to introduce this thread to overlap with discussions around data filtering #22, schema filtering #21, response structure #6, and hypermedia #7.
Basics of content negotiation would be, do we offer application/csv, and text/html, as well as applicaiton/json (which is current default).
Advanced would be offering application/vnd.api+json, application/hal+json, or application/vnd.siren+json.
I'm thinking that offering a simple CSV and JSON response for default make sense for newbies. Content negotiation 101. Then we could start loading up some of the more detailed requests, and solving the "return everything" and "return exactly what I want" with introduction of hypermedia type, or even possibly something like application/vnd.hsds+api.
The text was updated successfully, but these errors were encountered: