# Functions
FindRoute returns the REST route for the given request.
IndexFromContext extracts the router from the given net/context.
NewError returns a rest.Error from an standard error.
NewHandler creates an new REST API HTTP handler with the specified resource index.
RouteFromContext extracts the matched route from the given net/context.
# Variables
ErrClientClosedRequest is returned when the client closed the connection before the server was able to finish processing the request.
ErrConflict happens when another thread or node modified the data concurrently with our own thread in such a way we can't securely apply the requested changes.
ErrForbidden represents a 403 HTTP error.
ErrGatewayTimeout is returned when the specified timeout for the request has been reached before the server was able to process it.
ErrInvalidMethod happens when the used HTTP method is not supported for this resource.
ErrNotFound represents a 404 HTTP error.
ErrNotImplemented happens when a requested feature is not implemented.
ErrPreconditionFailed happens when a conditional request condition is not met.
ErrUnknown is thrown when the origin of the error can't be identified.
# Structs
DefaultResponseFormatter provides a base response formatter to be used by default.
DefaultResponseSender provides a base response sender to be used by default.
Error defines a REST error with optional per fields error details.
Handler is a net/http compatible handler used to serve the configured REST API.
ResourcePathComponent represents the path of resource and sub-resources of a given request's resource.
RouteMatch represent a REST request's matched resource with the method to apply and its parameters.
# Interfaces
ResponseFormatter defines an interface responsible for formatting a the different types of response objects.
ResponseSender defines an interface responsible for serializing and sending the response to the http.ResponseWriter.
# Type aliases
ResourcePath is the list of ResourcePathComponent leading to the requested resource.