design

package
v0.0.0-...-78845b4 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2018 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Routine = Type("Routine", func() {

	Attribute("routineID", Integer, "Routine ID")

	Attribute("name", String, "Name Routine name")

	Attribute("activities", Integer, "Number of activities")

	Required(

		"routineID",

		"name",

		"activities",
	)

})
View Source
var RoutineMedia = MediaType("application/json", func() {
	Description("A routine of a CEHDUN")
	TypeName("RoutineMedia")

	Attribute("nombre", String, "Unique routine ID")

	Attribute("apellido", String, "API href for making requests on the routine")

	Attribute("cedula", String, "Name of a routine")

	Required(

		"nombre",

		"apellido",

		"cedula",
	)

	View("default", func() {

		Attribute("nombre")

		Attribute("apellido")

		Attribute("cedula")

	})

})

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