in reply to REST API Server in Perl

I use Dancer2 for all my personal stuff, from my automated grow room environment software to a system that fetches data from a Tesla API that I call from a microcontroller, that displays the battery status in my Tesla to remind me to plug the car in if needed when I pull into my garage. JSON in, process in Perl, JSON out.

Here's a link to the manual.

Replies are listed 'Best First'.
Re^2: REST API Server in Perl
by programmingzeal (Beadle) on Feb 16, 2022 at 06:21 UTC
    Many thanks for your response.

    Actually due to constraint I can't use dancer now but I will adopt this framework in my future work.

    I intend to utilize sockets for achieving my goal. As this is simple client server problem where machines are on LAN. So how to utilize Perl sockets for developing Rest API server?

      What constraint?

      See Dancer2::Plugin::WebSocket or search the Google for tutorials on using Dancer2 with Websockets such as this one.

      Hope this helps!


      The way forward always starts with a minimal test.