Skip to main content

Module resource

Module resource 

Source
Expand description

CRUD resource registration.

Turns a Store into the six routes the specification describes for a collection and its items, including pagination Link headers (section 6.1), entity tags and conditional requests (section 7).

Structs§

ResourceOptions
How a resource is registered.

Constants§

RESOURCE_OPERATIONS
Operations a resource can expose, in registration order.

Functions§

register_resource
Register the routes of a CRUD resource on an application.
representation_etag
Entity tag of a value in the representation the client asked for.