# Functions
No description provided by the author
Error returns a JSON:API formatted document containing the provided error.
Handle returns a [Handler], which wraps the provided http handler.
NewRecorder returns an initialized [ResponseRecorder].
PassthroughContextResolver returns a resolver that returns an existing request context from the request.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Write writes the http response to the response writer.
WriteLink adds a URL to the response document's links attribute with the provided key.
WriteLocationHeader adds the "Location" http header to the response.
WriteMeta adds a key/value pair to the response document's meta attribute.
WriteNavigationLinks adds pagination URLs to the response document's links attribute.
WriteRef overwrites the primary data with the primary data's relationship, referenced by name.
WriteResourceLinks applies the "self" and "related" links to all resources and resource relationships embedded in the response document.
WriteSelfLink adds the full request URL to the response document's links attribute.
WriteSortedPrimaryData orders resources in the response document according to the specified sort criterion.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
Handler wraps an http handler, providing JSON:API context to downstream consumers.
Relationship handlers route requests that correspond to a resource's relationships.
Resource is a collection of handlers for resource endpoints.
ResponseRecorder rr implements [http.ResponseWriter], capturing WriteHeader() and Write() calls into its instance members.
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
RelationshipMux is a http handler multiplexer for a resource's relationships.
ResourceMux is similar to [http.ServeMux], but instead of routing requests directly from URL patterns, routes are determined by JSON:API context resource type.
No description provided by the author