@RestController @RequestMapping(value="/v1") @Deprecated @ConditionalOnBean(value=ChannelsService.class) public class ChannelsRoute extends Object
Constructor and Description |
---|
ChannelsRoute(ChannelsService service)
Deprecated.
Constructor of ChannelsRoute
|
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<org.thales.punch.settings.api.ISettingsMap> |
getStatus(javax.servlet.http.HttpServletRequest req,
String tenant)
Deprecated.
Get the status for all channels in tenant
|
org.springframework.http.ResponseEntity<org.thales.punch.settings.api.ISettingsMap> |
getStatus(javax.servlet.http.HttpServletRequest req,
String tenant,
String channel)
Deprecated.
Get the status of a channel
|
void |
startChannel(javax.servlet.http.HttpServletRequest req,
String tenant,
String channel)
Deprecated.
Start a channel
|
void |
stopChannel(javax.servlet.http.HttpServletRequest req,
String tenant,
String channel)
Deprecated.
Stop a channel
|
public ChannelsRoute(ChannelsService service)
service
- PunchCtl service@GetMapping(value="/{tenant}/channels/{channel}", produces="application/json") public org.springframework.http.ResponseEntity<org.thales.punch.settings.api.ISettingsMap> getStatus(javax.servlet.http.HttpServletRequest req, @PathVariable(value="tenant") String tenant, @PathVariable(value="channel") String channel)
tenant
- Tenant namechannel
- Channel name@GetMapping(value="/{tenant}/channels", produces="application/json") public org.springframework.http.ResponseEntity<org.thales.punch.settings.api.ISettingsMap> getStatus(javax.servlet.http.HttpServletRequest req, @PathVariable(value="tenant") String tenant)
tenant
- Tenant name@PostMapping(value="/{tenant}/channels/{channel}/start", produces="application/json") @ResponseStatus(code=NO_CONTENT) public void startChannel(javax.servlet.http.HttpServletRequest req, @PathVariable(value="tenant") String tenant, @PathVariable(value="channel") String channel)
tenant
- Tenant namechannel
- Channel name@PostMapping(value="/{tenant}/channels/{channel}/stop", produces="application/json") @ResponseStatus(code=NO_CONTENT) public void stopChannel(javax.servlet.http.HttpServletRequest req, @PathVariable(value="tenant") String tenant, @PathVariable(value="channel") String channel)
tenant
- Tenant namechannel
- Channel nameCopyright © 2023. All rights reserved.