Skip to content

Commit e857fbf

Browse files
committed
Add rails-routing-dsl example for smart home control API
1 parent 8020d72 commit e857fbf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

examples/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff 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

3241
Each example directory contains its own README with specific instructions. Generally:

0 commit comments

Comments
 (0)