design

package
v0.0.0-...-c21ffc6 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TodoMedia = MediaType("application/vnd.duetoday.todo+json", func() {
	Description("A To Do")
	Attributes(func() {
		Attribute("id", Integer, "Unique Todo ID")
		Attribute("title", String, "Todo title")
		Attribute("details", String, "Additional notes")
		Required("id", "title")
	})
	View("default", func() {
		Attribute("id")
		Attribute("title")
		Attribute("details")
	})
})

TodoMedia defines the media type used to render todos.

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