From the course: Building and Securing RESTful APIs in ASP.NET Core

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

The Ion hypermedia type

The Ion hypermedia type - ASP.NET Core Tutorial

From the course: Building and Securing RESTful APIs in ASP.NET Core

Start my 1-month free trial

The Ion hypermedia type

- [Presenter] ION is a JSON based specification for hypermedia and RESTful APIs. It's designed to be intuitive and have as little ceremony as possible, so your API responses are clean and easily readable by both humans and machines. In ION, links between resources are modeled as JSON objects with an href property. Like HTML links, you can include option attributes that describe the link. The method attribute specifies which http verb should be used to interact with the link, and the rel attribute describes whether the target represents a self-referential link or a collection or a form and so on. Resources in ION are modeled as plain JSON objects that include a self-referential link. This link can either be contained in an element called self, or implied as part of the resource if the href property exists on the resource. ION defines a special type of object called a value object, which must have a property called value. One of the uses of the value object is modeling a collection of…

Contents