Sponsorship is available! If you’d like to sponsor CodeOpinion.com and have your product or service advertised exclusively (no AdSense) on every post, contact me.There’s a new media type available, RESTful JSON, that was recently registered (Feb 1st 2018) with IANA. It’s really the simplest possible media type to use in order to start adding links to your JSON APIs. The new media type is
Adding HyperlinksThe simplicity here is that you can start using this media type with existing APIs to start adding links to your existing objects.
- JSON objects MAY include a
urlproperty to indicate a link to itself
- JSON objects MAY append
_urlto properties to indicate related links