1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
#![deny(missing_docs)] //! `ResourceEndpoint` provides a generalised restlike endpoint for a resource //! The Only way to create a resource Endpoint is by using the ResourceEndpointBuilder extern crate iron; extern crate router; extern crate bit_set; extern crate url; pub use resource_endpoint::{ResourceEndpointBuilder, ResourceMethod}; /// This module Provides the ResourceEndpoint, ResourceEndpointBuilder and ResourceMethod pub mod resource_endpoint; /// This module provides the types (traits) a Using application has to implement pub mod types; //internal //mod handler_arc; mod middleware; mod internals; //FIXME change way Option/IdKey is refered too /linked in to be more strict //TODO add default header (or default header generator?) //TODO (after aboves fix?) add body parser and redundant id check //if put/post->parse body into Doc: Resource<Id> mit Id == IdKey::Value or IdKey::Value: Option<Id> //if put check if if_from_url == doc.get_id() else error inkonsistency