RDF::Server::Interface::REST - REST interface


RDF-Server documentation  | view source Contained in the RDF-Server distribution.

Index


NAME

Top

RDF::Server::Interface::REST - REST interface

SYNOPSIS

Top

 package My::Server;

 use RDF::Server;
 interface 'REST';

DESCRIPTION

Top

This module provides a REST interface based on the Atom specification (RFC 5023).

The top level handler can be any class that implements the RDF::Server::Role::Handler role. All handlers should at least implement the RDF::Server::Role::Renderable role if they are browsable. Otherwise, path components will resolve, but indexes will not be retrievable.

The leaf handlers should implement the RDF::Server::Role::Mutable role to support the full REST protocol.

The Atom semantic allows easy configuration of an Atom document heirarchy.

METHODS

Top

handle_request

Given the request and response objects, this method will find the proper handler and hand off handling to the proper handler method. The response from the handler is then translated to the response object.

SEE ALSO

Top

RDF::Server::Role::Handler, RDF::Server::Role::Renderable, RDF::Server::Role::Container, RDF::Server::Role::Mutable, RDF::Server::Semantic::Atom, RDF 5023.

AUTHOR

Top

James Smith, <jsmith@cpan.org>

LICENSE

Top

Copyright (c) 2008 Texas A&M University.

This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.


RDF-Server documentation  | view source Contained in the RDF-Server distribution.