Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UserProfileMedia = MediaType("application/microkubes.user-profile+json", func() { TypeName("userProfile") Reference(UserProfilePayload) Attributes(func() { Attribute("userId", String, "Unique user ID") Attribute("fullName") Attribute("email") Attribute("company") Attribute("companyRegistrationNumber") Attribute("taxNumber") Attribute("createdOn", Integer, "User profile created timestamp") Required("userId", "createdOn") }) View("default", func() { Attribute("userId") Attribute("fullName") Attribute("email") Attribute("company") Attribute("companyRegistrationNumber") Attribute("taxNumber") Attribute("createdOn") }) })
UserProfileMedia is the default media type for user-profile service
View Source
var UserProfilePayload = Type("UserProfilePayload", func() {
Description("UserProfile data")
Attribute("fullName", String, "Full name of the user")
Attribute("email", String, "Email of user", func() {
Format("email")
})
Attribute("company", String, "Company name")
Attribute("companyRegistrationNumber", String, "Company registration number")
Attribute("taxNumber", String, "Tax number")
Required("fullName", "email")
})
UserProfilePayload is the payload specification
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.