design

package
v3.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 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("/archive/1")
		})
		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