MCPcopy Create free account
hub / github.com/DataDog/jsonapi / LinkableRelation

Interface LinkableRelation

jsonapi.go:362–364  ·  view source on GitHub ↗

LinkableRelation can be implemented to marshal resource object related resource links as defined by https://jsonapi.org/format/1.0/#document-resource-object-related-resource-links.

Source from the content-addressed store, hash-verified

360
361// LinkableRelation can be implemented to marshal resource object related resource links as defined by https://jsonapi.org/format/1.0/#document-resource-object-related-resource-links.
362type LinkableRelation interface {
363 LinkRelation(relation string) *Link
364}
365
366// MarshalIdentifier can be optionally implemented to control marshaling of the primary field to a string.
367//

Callers 1

makeResourceObjectMethod · 0.65

Implementers 3

Commentmarshal_relationships_example_test.go
Articlemarshal_example_test.go
ArticleRelatedjsonapi_test.go

Calls

no outgoing calls

Tested by

no test coverage detected