Module reep::resource_endpoint [] [src]

This module Provides the ResourceEndpoint, ResourceEndpointBuilder and ResourceMethod

Structs

ResourceEndpoint

The ResourceEndoint struct on itself is just a Wrapper around Router. It can be Treated like any other Handler and e.g. routed. The Resource endpint itself uses a / and a /:resource_id therefor it is normal to use a routing/mounting middelware to let it run on e.g. /users/ /users/:resource_id

ResourceEndpointBuilder

The ResourceEndpointBuilder is the only provieded way to create a ResourceEndpoint it will automatikly inject the gicen body parser and options parser in the routs witch need them. Same is true for a IdParser internaly created using Id type provided by the resource

Enums

ResourceMethod

The ResourceMethod is like a Http Method but in the Context of a Resource. Expect the nomral Methods there are Hooks for defining Head and Option Hanlders