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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.