design

package
v0.0.0-...-37f29b7 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HeroMedia = MediaType("application/vnd.hero+json", func() {
	Description("A comic hero")
	Attributes(func() {
		Attribute("id", Integer, "Unique heroe ID")
		Attribute("name", String, "Name of hero")
		Required("id", "name")
	})
	View("default", func() {
		Attribute("id")
		Attribute("name")
	})
})

HeroMedia defines the media type used to render heroes.

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