Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HeroMedia = MediaType("application/vnd.hero+json", func() {
Description("A comic hero")
Attributes(func() {
Attribute("id", Integer, "Unique heroe ID")
Attribute("name", String, "Name of hero")
Required("id", "name")
})
View("default", func() {
Attribute("id")
Attribute("name")
})
})
HeroMedia defines the media type used to render heroes.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.