hybridgroup / cylon

JavaScript framework for robotics, drones, and the Internet of Things (IoT)
https://cylonjs.com
Other
4.2k stars 360 forks source link

Cylon and REST #345

Open OlivierLD opened 8 years ago

OlivierLD commented 8 years ago

I'd like to have your opinion about the way to use REST services to reach Cylon features. I've put a quick sample of REST + Cylon-Speech here on github, look at the README.md. It uses Swagger to generate the REST server code.

It works fine, but:

Comments most welcome, thanks!

deadprogram commented 8 years ago

Hi, @OlivierLD you for sure should check out the built-in API plugins, such as https://github.com/hybridgroup/cylon-api-http

This allows client programs to access a REST interface based on cppp.io

You can also access the cppp interface using either socket.io (https://github.com/hybridgroup/cylon-api-socketio) or mqtt (https://github.com/hybridgroup/cylon-api-mqtt)

Hope that helps!