WebThingsIO / api

Web Thing API Specification
http://iot.mozilla.org/wot/
Other
164 stars 25 forks source link

Specify MIME type for Thing Description #78

Open benfrancis opened 6 years ago

benfrancis commented 6 years ago

It's necessary to specify a MIME type for a Thing Description to denote that it is not just JSON but is a Web Thing Description with an implied default context.

I suggest using application/td+json as per the latest W3C proposal on the assumption that we will converge on that format.

benfrancis commented 6 years ago

Question: Should the MIME type for the REST API payloads be the same or different to the MIME type of the Thing Description?

I wonder if they may be two separate data types.