@RestController @RequestMapping(value="sensor") public class SensorController extends Object
Constructor and Description |
---|
SensorController(org.ezand.telldus.cli.repository.TelldusRepository repository) |
Modifier and Type | Method and Description |
---|---|
org.ezand.telldus.cli.data.Sensor |
device(int id) |
List<org.ezand.telldus.cli.data.Sensor> |
sensors() |
@Autowired public SensorController(org.ezand.telldus.cli.repository.TelldusRepository repository)
@RequestMapping(value={"","/"}, method=GET) public List<org.ezand.telldus.cli.data.Sensor> sensors()
@RequestMapping(value="/{id:\\d*}", method=GET) public org.ezand.telldus.cli.data.Sensor device(@PathVariable int id)
Copyright © 2015. All rights reserved.