Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello,

I'm new to Perl and i'm trying to implement REST API using Perl. I installed Apache2::REST , and i couldn't find enough detailed example to implement it (i'm poor in Perl).

Ok, i see the below details in the document attached with the module (http://search.cpan.org/~jeteve/Apache2-REST-0.07/lib/Apache2/REST.pm) ,

<Location />
SetHandler perl-script
PerlSetVar Apache2RESTHandlerRootClass "MyApp::REST::API"
PerlResponseHandler Apache2::REST
</Location>


i use Apache2 with Mod Perl, my web root path is /usr/local/apache2/htdocs

and i see the Sample program/package named MyApp::REST::API in the document

My question is, where should i place this Package/program ? under ..../htdocs/MyApp/REST/API.pm ? or ..../htdocs/API.pm? or how i tried both but no luck,..

Could any one please guide me to implement this API?

Regards,
Rik.

Replies are listed 'Best First'.
Re: Basic Apache2::REST implementation
by Anonymous Monk on Nov 19, 2014 at 23:50 UTC