View definition

(*APIDefinition).MediaTypeWithIdentifier

Defined in github.com/goadesign/goa/design/definitions.go

Description

MediaTypeWithIdentifier returns the media type with a matching media type identifier. Two media type identifiers match if their values sans suffix match. So for example "application/vnd.foo+xml", "application/vnd.foo+json" and "application/vnd.foo" all match.

MediaTypeWithIdentifier is referenced in 3 repositories

github.com/goadesign/goa github.com/goadesign/gorma github.com/goadesign/cola