File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ This directory contains example implementations of JSON-RPC servers using the js
1010- [ ** rails** ] ( ./rails/ ) - Calculator server using Rails
1111- [ ** rails-single-file** ] ( ./rails-single-file/ ) - Echo server using Rails with bundler/inline
1212- [ ** rails-single-file-routing** ] ( ./rails-single-file-routing/ ) - Echo server using Rails with method-specific routing
13+ - [ ** rails-routing-dsl** ] ( ./rails-routing-dsl/ ) - Smart home control server showcasing Rails JSON-RPC routing DSL
1314- [ ** sinatra-classic** ] ( ./sinatra-classic/ ) - Calculator server using classic Sinatra
1415- [ ** sinatra-modular** ] ( ./sinatra-modular/ ) - Calculator server using modular Sinatra
1516
@@ -27,6 +28,14 @@ The echo examples implement:
2728
2829- ` echo ` - Returns the input message
2930
31+ The rails-routing-dsl example implements a smart home control API:
32+
33+ - ` on ` / ` off ` - Control main home automation system
34+ - ` lights.on ` / ` lights.off ` - Control lights
35+ - ` climate.on ` / ` climate.off ` - Control climate system
36+ - ` climate.fan.on ` / ` climate.fan.off ` - Control climate fan
37+ - Batch request support for multiple operations
38+
3039## Running Examples
3140
3241Each example directory contains its own README with specific instructions. Generally:
You can’t perform that action at this time.
0 commit comments