Wayne Arthurton
Wayne Arthurton

Reputation: 643

Is there an example in CPAN of a module that implements a REST based API using modern Perl techniques?

I would like to create a module for the Pinboard API. Though very similar to the old Delicious API, there are enough changes that I would like to re-implement to specifically work for Pinboard.

The Net::Delicious module was build initially in 2002 and I see that many of the newer REST best Modules are implemented in a new way. Net::Twitter, WebService::Dropbox and WWW::Vimeo::Simple seem to have different methodologies on how to implement their respective REST API.

Net::Twitter is very complex and heavy implementation in my opion. WebService::Dropbox is extremely light as is the API it implements. WWW::Vimeo::Simple seems to be between the two in terms of complexity.

I also spent some time looking at REST::Client but it probably would not be useful if you want to implement more that one or two methods.

What are the best practices for implementing a complete REST webservice? and also to test the responses without being able to connect to the service.

Upvotes: 4

Views: 622

Answers (1)

Leon Timmermans
Leon Timmermans

Reputation: 30225

What you want is Net::HTTP::Spore. It's a moosy framework for REST clients in modern Perl. See also these slides

Upvotes: 3

Related Questions