Layouts
Sumber daya pencahayaan berinteraksi dengan canvas dan efek yang sedang diputar. Di sini Anda dapat melihat efek saat ini, mengubahnya, mengubah preset-nya, atau mengiterasi semua efek yang saat ini diinstal untuk pengguna.
| Metode | Endpoint |
|---|---|
| GET | scenes/current_layout |
| PATCH | scenes/current_layout |
| GET | scenes/layouts |
Dapatkan Layout Saat Ini
Section titled “Dapatkan Layout Saat Ini”Mengambil informasi tentang Layout saat ini.
curl http://localhost:16038/api/v1/scenes/current_layout{ "api_version": "1.0", "data": { "current_layout": { "id": "My Layout 1", "type": "layout" } }, "id": 10, "method": "/api/v1/scenes/current_layout", "params": {}, "status": "ok"}Atur Layout Saat Ini
Section titled “Atur Layout Saat Ini”Mengatur Layout yang sedang aktif.
curl -X PATCH -d "{\"layout\":\"My Layout 1\"}" http://localhost:16038/api/v1/scenes/current_layout{ "api_version": "1.0", "data": { "current_layout": { "id": "My Layout 1", "type": "layout" } }, "id": 3, "method": "/api/v1/scenes/current_layout", "params": { "body": { "layout": "My Layout 1" } }, "status": "ok"}Dapatkan Semua Layout
Section titled “Dapatkan Semua Layout”Mendapatkan daftar semua Layout yang tersedia yang dimiliki pengguna.
curl http://localhost:16038/api/v1/scenes/layouts{ "api_version": "1.0", "data": { "items": [ { "id": "My Layout 1", "type": "layout" }, { "id": "My Layout 2", "type": "layout" } ], "type": "layouts" }, "id": 11, "method": "/api/v1/scenes/layouts", "params": {}, "status": "ok"}