Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NotFound = Type("NotFound", func() {
Description("NotFound is the type returned when the requested data that does not exist.")
Attribute("message", String, "Message of error", func() {
Example("Client ABCDEF12356890 not found")
})
Field(2, "id", String, "ID of missing data")
Required("message", "id")
})
View Source
var UserResult = ResultType("application/vnd.user", func() { Description("User type") TypeName("User") Field(1, "Id", func() { Example("1") }) Field(2, "Email", func() { Example("[email protected]") }) Field(3, "FirstName", func() { Example("John") }) Field(4, "LastName", func() { Example("Doe") }) })
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.