Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Multimedia = MediaType("application/vnd.multimedia+json", func() {
Attributes(func() {
Attribute("id", Integer, func() {
Metadata("struct:field:name", "MediaID")
Description("Media ID")
})
Attribute("url", String, func() {
Metadata("struct:field:name", "MediaURL")
Description("Media URL")
})
Attribute("optional_note", String, func() {
Metadata("struct:field:name", "Note")
Description("An optional string field in the Multimedia")
})
Required("id", "url")
})
View("default", func() {
Attribute("id")
Attribute("url")
Attribute("optional_note")
})
})
View Source
var MultimediaListMedia = MediaType("application/vnd.multimedialist+json", func() { Description("multimedia list") Attributes(func() { Attribute("media", ArrayOf(Multimedia), func() { Metadata("struct:field:name", "MediaList") Description("A required array field in the parent media type") }) Required("media") }) View("default", func() { Attribute("media") }) })
View Source
var UploadPayload = Type("UploadPayload", func() {
Attribute("id", Integer, func() {
Description("A required int field in the parent type.")
})
Attribute("file1", File, func() {
Metadata("struct:field:name", "FilePrimary")
Description("A required file field in the parent type.")
})
Attribute("file2", File, func() {
Metadata("struct:field:name", "FileSecondary")
Description("An optional file field in the parent type.")
})
Required("id", "file1")
})
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.