Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BottleMedia = MediaType("application/vnd.goa.example.bottle+json", func() {
Description("A bottle of wine")
Attributes(func() {
Attribute("id", Integer, "Unique bottle ID")
Attribute("href", String, "API href for making requests on the bottle")
Attribute("name", String, "Name of wine")
Required("id", "href", "name")
})
View("default", func() {
Attribute("id")
Attribute("href")
Attribute("name")
})
})
BottleMedia defines media type used for rendering of a bottle.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.