If you are looking to build a REST api with Apache mod_perl, you might
be interested in Net::API::REST (
https://metacpan.org/pod/Net::API::REST)
Jacques
On 2022/04/21 23:27, John Dunlap wrote:
> I sent this 8 years ago but, at the time, no one was interested.
> image.png
>
>
> On Thu, Apr 21, 2022 at 9:40 AM John Dunlap <John@lariat.co> wrote:
>
> I ended up writing something custom to do that.
>
> On Wed, Apr 20, 2022 at 11:22 PM Henrik S
> <henrik@tomatoservers.com> wrote:
>
> given the sample url:
>
> /api/user/id
>
> the part of "/api/user" is fixed. and there is a handler
> setup for this
> path.
>
> how to get the id part in mod_perl?
>
> in other framework I could get it with the similar format:
>
> /api/user/:id
>
> puts "hallo #{id}"
>
>
> Thank you.
>
>
>
> --
> John Dunlap
> /CTO | Lariat/
> /
> /
> /*Direct:*/
> /john@lariat.co/
> /
> *Customer Service:*/
> 877.268.6667
> support@lariat.co
>
>
>
> --
> John Dunlap
> /CTO | Lariat/
> /
> /
> /*Direct:*/
> /john@lariat.co/
> /
> *Customer Service:*/
> 877.268.6667
> support@lariat.co