design

package
v0.0.0-...-047630e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳