design

package
v2.2.5+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ArchiveMedia = ResultType("application/vnd.goa.archive", func() {
	Description("Archive is an HTTP response archive")
	TypeName("ArchiveMedia")
	Reference(ArchivePayload)
	Attributes(func() {
		Attribute("href", String, "The archive resouce href", func() {
			Pattern("^/archive/[0-9]+$")
			Example("/archive1/")
		})
		Attribute("status")
		Attribute("body")
		Required("href", "status", "body")
	})
	View("default", func() {
		Attribute("href")
		Attribute("status")
		Attribute("body")
	})
})
View Source
var ArchivePayload = Type("ArchivePayload", func() {
	Attribute("status", Int, "HTTP status", func() {
		Minimum(0)
		Example(200)
	})
	Attribute("body", String, "HTTP response body content")
	Required("status", "body")
})

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