@RestController public class ApplicationController extends ControllerBase
Constructor and Description |
---|
ApplicationController() |
Modifier and Type | Method and Description |
---|---|
ResponseEntity<Property> |
createProperty(String name,
Property property) |
ResponseEntity<Void> |
deleteApplication(String name) |
ResponseEntity<Property> |
deleteProperty(String name,
String property) |
ResponseEntity<Application> |
getApplication(String name) |
ResponseEntity<Property> |
getProperty(String name,
String prop) |
ResponseEntity<Applications> |
listApplications() |
ResponseEntity<Properties> |
listProperties(String name) |
ResponseEntity<Application> |
updateApplication(String name,
Application application) |
ResponseEntity<Property> |
updateProperty(String name,
Property property) |
getDatabaseStatus, getSharedSecret, onBusinessException
@RequestMapping(value="/application", method=GET) public ResponseEntity<Applications> listApplications()
@RequestMapping(value="/application/{name}", method=GET) public ResponseEntity<Application> getApplication(@PathVariable(value="name") String name)
@RequestMapping(value="/application/{name}", method=PUT) public ResponseEntity<Application> updateApplication(@PathVariable(value="name") String name, @RequestBody Application application) throws BusinessException
BusinessException
@RequestMapping(value="/application/{name}", method=DELETE) public ResponseEntity<Void> deleteApplication(@PathVariable(value="name") String name) throws BusinessException
BusinessException
@RequestMapping(value="/application/{name}/property", method=GET) public ResponseEntity<Properties> listProperties(@PathVariable(value="name") String name)
@RequestMapping(value="/application/{name}/property/{prop}", method=GET) public ResponseEntity<Property> getProperty(@PathVariable(value="name") String name, @PathVariable(value="prop") String prop)
@RequestMapping(value="/application/{name}/property", method=POST) public ResponseEntity<Property> createProperty(@PathVariable(value="name") String name, @RequestBody Property property)
@RequestMapping(value="/application/{name}/property/{prop}", method=PUT) public ResponseEntity<Property> updateProperty(@PathVariable(value="name") String name, @RequestBody Property property)
@RequestMapping(value="/application/{name}/property/{prop}", method=DELETE) public ResponseEntity<Property> deleteProperty(@PathVariable(value="name") String name, @PathVariable(value="prop") String property)
Copyright © 2011–2017 aiticon GmbH. All rights reserved.