Documentation ¶
Index ¶
Constants ¶
View Source
const ( LinkSelf = "self" LinkFirst = "first" LinkLast = "last" LinkPrevious = "previous" LinkNext = "next" // QueryPage is query param use for the pagination QueryPage = "_page" )
List of available links for collection
Variables ¶
This section is empty.
Functions ¶
func GenerateURI ¶
GenerateURI return uri for one given route
Types ¶
type Hateoas ¶
type Hateoas struct { Embedded Embedded `json:"_embedded,omitempty" gorm:"-"` Links Links `json:"_links,omitempty" gorm:"-"` }
Hateoas struct with all necessary component for hateoas response
type Hateoasable ¶
type Hateoasable interface {
GenerateHateoas(ctx *aah.Context) error
}
Hateoasable interface for generate hateoas content
Click to show internal directories.
Click to hide internal directories.