Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: REST API Server in Perl

by stevieb (Canon)
on Feb 16, 2022 at 03:22 UTC ( [id://11141409]=note: print w/replies, xml ) Need Help??

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.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11141409]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-05-30 00:04 GMT
Find Nodes?
    Voting Booth?

    No recent polls found