Skip to content

Commit f90aa86

Browse files
committed
Correct instance dependencies on API commaands
1 parent 507f552 commit f90aa86

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

doc/development/JSON-API _Commands_Overview.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ _http/s Support_
5252
| config | restoreconfig | Admin | No | No | Yes |
5353
| config | setconfig | Admin | No | No | Yes |
5454
| correction | | Yes | Single | Yes | Yes |
55-
| create-effect | | Yes | Single | Yes | Yes |
56-
| delete-effect | | Yes | Single | Yes | Yes |
55+
| create-effect | | Yes | No | No | Yes |
56+
| delete-effect | | Yes | No | No | Yes |
5757
| effect | | Yes | Multi | Yes | Yes |
5858
| image | | Yes | Multi | Yes | Yes |
5959
| inputsource | discover | Yes | No | No | Yes |
@@ -71,9 +71,9 @@ _http/s Support_
7171
| ledcolors | ledstream-start | Yes | Single | Yes | Yes |
7272
| ledcolors | ledstream-stop | Yes | Single | Yes | Yes |
7373
| leddevice | addAuthorization | Yes | Single | Yes | Yes |
74-
| leddevice | discover | Yes | Single | Yes | Yes |
75-
| leddevice | getProperties | Yes | Single | Yes | Yes |
76-
| leddevice | identify | Yes | Single | Yes | Yes |
74+
| leddevice | discover | Yes | No | No | Yes |
75+
| leddevice | getProperties | Yes | No | No | Yes |
76+
| leddevice | identify | Yes | No | No | Yes |
7777
| logging | start | Yes | No | No | Yes |
7878
| logging | stop | Yes | No | No | Yes |
7979
| processing | | Yes | Multi | Yes | Yes |

include/api/JsonApiCommand.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,9 +335,9 @@ class ApiCommandRegister {
335335
{ {"ledcolors", "ledstream-start"}, { Command::LedColors, SubCommand::LedStreamStart, Authorization::Yes, InstanceCmd::Single, InstanceCmd::MustRun_Yes, NoListenerCmd::Yes } },
336336
{ {"ledcolors", "ledstream-stop"}, { Command::LedColors, SubCommand::LedStreamStop, Authorization::Yes, InstanceCmd::Single, InstanceCmd::MustRun_Yes, NoListenerCmd::Yes } },
337337
{ {"leddevice", "addAuthorization"}, { Command::LedDevice, SubCommand::AddAuthorization, Authorization::Yes, InstanceCmd::Single, InstanceCmd::MustRun_Yes, NoListenerCmd::Yes } },
338-
{ {"leddevice", "discover"}, { Command::LedDevice, SubCommand::Discover, Authorization::Yes, InstanceCmd::Single, InstanceCmd::MustRun_Yes, NoListenerCmd::Yes } },
339-
{ {"leddevice", "getProperties"}, { Command::LedDevice, SubCommand::GetProperties, Authorization::Yes, InstanceCmd::Single, InstanceCmd::MustRun_Yes, NoListenerCmd::Yes } },
340-
{ {"leddevice", "identify"}, { Command::LedDevice, SubCommand::Identify, Authorization::Yes, InstanceCmd::Single, InstanceCmd::MustRun_Yes, NoListenerCmd::Yes } },
338+
{ {"leddevice", "discover"}, { Command::LedDevice, SubCommand::Discover, Authorization::Yes, InstanceCmd::No, InstanceCmd::MustRun_No, NoListenerCmd::Yes } },
339+
{ {"leddevice", "getProperties"}, { Command::LedDevice, SubCommand::GetProperties, Authorization::Yes, InstanceCmd::No, InstanceCmd::MustRun_No, NoListenerCmd::Yes } },
340+
{ {"leddevice", "identify"}, { Command::LedDevice, SubCommand::Identify, Authorization::Yes, InstanceCmd::No, InstanceCmd::MustRun_No, NoListenerCmd::Yes } },
341341
{ {"logging", "start"}, { Command::Logging, SubCommand::Start, Authorization::Yes, InstanceCmd::No, InstanceCmd::MustRun_No, NoListenerCmd::Yes } },
342342
{ {"logging", "stop"}, { Command::Logging, SubCommand::Stop, Authorization::Yes, InstanceCmd::No, InstanceCmd::MustRun_No, NoListenerCmd::Yes } },
343343
{ {"processing", ""}, { Command::Processing, SubCommand::Empty, Authorization::Yes, InstanceCmd::Multi, InstanceCmd::MustRun_Yes, NoListenerCmd::Yes } },

0 commit comments

Comments
 (0)