design

package
v0.0.0-...-c493eae Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Article = MediaType("application/vnd.goa.news.api.article+json", func() {
	Description("記事詳細のデータ")
	Attributes(func() {
		Attribute("id", Integer)
		Attribute("head_line", String)
		Attribute("news_link", String)
		Attribute("thumb_url", String)
		Attribute("category_id", String)
		Attribute("media_id", String)
		Attribute("created", String)
		Attribute("updated", String)
		Attribute("vespa_index", String)
		Attribute("qsty_category_id", String)
		Attribute("description", String)
		Attribute("clicks", Integer)
		Required(
			"id",
			"head_line",
			"news_link",
			"thumb_url",
			"category_id",
			"media_id",
			"created",
			"updated",
			"vespa_index",
			"qsty_category_id",
			"description",
			"clicks",
		)
	})
	View("default", func() {
		Attribute("id")
		Attribute("head_line")
		Attribute("description")
		Attribute("clicks")
	})
})

レスポンスデータの定義

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