Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MessageType = MediaType("application/vnd.messageType+json", func() {
Description("example")
Attributes(func() {
Attribute("id", Integer, "id", func() {
Default(0)
Example(1)
})
Attribute("message", String, "message", func() {
Default("")
Example("ok")
})
})
Required(
"id",
"message",
)
View("default", func() {
Attribute("id")
Attribute("message")
Required(
"id",
"message",
)
})
})
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.