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

I would like to create a module for the Pinboard API . Although it is very similar to the old Delicious API, there are enough changes that I would like to reimplement to work specifically for Pinboard.

The Net::Delicious module was originally created in 2002, and I see that many of the new Best REST 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 a very complex and difficult implementation in my proposal. WebService::Dropbox extremely lightweight, as is the API that it implements. WWW::Vimeo::Simple seems to be between the two in terms of complexity.

I also spent some time on REST::Client , but probably that would be useless if you want to implement more than one or two methods.

What are the best practices for implementing a complete REST web service? as well as to check responses without the ability to connect to the service.

+4
source share
1 answer

What you need is Net :: HTTP :: Spore. This is a manly structure for REST clients in modern Perl. See also these slides.

+3
source

Source: https://habr.com/ru/post/1394274/


All Articles