Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ArchiveMedia = ResultType("application/vnd.goa.archive", func() { Description("Archive is an HTTP response archive") TypeName("ArchiveMedia") Reference(ArchivePayload) Attributes(func() { Attribute("href", String, "The archive resouce href", func() { Pattern("^/archive/[0-9]+$") Example("/archive/1") }) Attribute("status") Attribute("body") Required("href", "status", "body") }) View("default", func() { Attribute("href") Attribute("status") Attribute("body") }) })
View Source
var ArchivePayload = Type("ArchivePayload", func() {
Attribute("status", Int, "HTTP status", func() {
Minimum(0)
Example(200)
})
Attribute("body", String, "HTTP response body content")
Required("status", "body")
})
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.