Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What Perl RESTful framework do you recommend? [closed]

Hi I'm looking for a Perl RESTful framework that have to :

  • work under apache2/mod_perl2
  • be simple
  • be elegant
  • be light
  • be flexible

Am I just dreaming or can I avoid the 'Roll our own' approach?

What framework would you recommend?

like image 468
jeje Avatar asked Nov 04 '09 17:11

jeje


People also ask

Which of the following is a micro framework to develop REST services?

Dropwizard framework is suitable for creating Java Microservices and for the rapid development of RESTful Web services. It provides access to several Java libraries to provide developers with a fast and distraction-free development platform.

What is REST API framework?

A REST API (also known as RESTful API) is an application programming interface (API or web API) that conforms to the constraints of REST architectural style and allows for interaction with RESTful web services. REST stands for representational state transfer and was created by computer scientist Roy Fielding.


2 Answers

I've used Dancer (github) for some smaller projects of mine. It's very elegant and very easy to get things done quickly with. It was inspired by the Ruby framework Sinatra.

It's as easy as:

#!/usr/bin/env perl
use Dancer;

get '/' => sub {
    'Hello world!'
};

dance;
like image 70
jeekl Avatar answered Sep 27 '22 17:09

jeekl


Dancer is pretty well documented and trustable if you look at the test suite: ~500 tests that cover more than 80% of the source tree.

It's PSGI/Plack compliant and has few dependencies. The version 1.0 should be released very soon (maybe this weekend).

See the dancer website to stay tuned.

like image 29
sukria Avatar answered Sep 27 '22 18:09

sukria