Package org.appng.appngizer.controller
Class ApplicationController
- java.lang.Object
-
- org.appng.appngizer.controller.ControllerBase
-
- org.appng.appngizer.controller.ApplicationController
-
@RestController public class ApplicationController extends ControllerBase
-
-
Field Summary
-
Fields inherited from class org.appng.appngizer.controller.ControllerBase
configurer, context, coreService, databaseService, session, templateService
-
-
Constructor Summary
Constructors Constructor Description ApplicationController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<Property>
createProperty(String name, Property property)
org.springframework.http.ResponseEntity<Void>
deleteApplication(String name)
org.springframework.http.ResponseEntity<Property>
deleteProperty(String name, String property)
org.springframework.http.ResponseEntity<Application>
getApplication(String name)
org.springframework.http.ResponseEntity<Property>
getProperty(String name, String prop)
org.springframework.http.ResponseEntity<Applications>
listApplications()
org.springframework.http.ResponseEntity<Properties>
listProperties(String name)
org.springframework.http.ResponseEntity<Application>
updateApplication(String name, Application application)
org.springframework.http.ResponseEntity<Property>
updateProperty(String name, Property property)
-
Methods inherited from class org.appng.appngizer.controller.ControllerBase
getDatabaseStatus, getSharedSecret, onBusinessException, onConstraintViolationException
-
-
-
-
Method Detail
-
listApplications
@GetMapping("/application") public org.springframework.http.ResponseEntity<Applications> listApplications()
-
getApplication
@GetMapping("/application/{name}") public org.springframework.http.ResponseEntity<Application> getApplication(@PathVariable("name") String name)
-
updateApplication
@PutMapping("/application/{name}") public org.springframework.http.ResponseEntity<Application> updateApplication(@PathVariable("name") String name, @RequestBody Application application) throws BusinessException
- Throws:
BusinessException
-
deleteApplication
@DeleteMapping("/application/{name}") public org.springframework.http.ResponseEntity<Void> deleteApplication(@PathVariable("name") String name) throws BusinessException
- Throws:
BusinessException
-
listProperties
@GetMapping("/application/{name}/property") public org.springframework.http.ResponseEntity<Properties> listProperties(@PathVariable("name") String name)
-
getProperty
@GetMapping("/application/{name}/property/{prop}") public org.springframework.http.ResponseEntity<Property> getProperty(@PathVariable("name") String name, @PathVariable("prop") String prop)
-
createProperty
@PostMapping("/application/{name}/property") public org.springframework.http.ResponseEntity<Property> createProperty(@PathVariable("name") String name, @RequestBody Property property)
-
updateProperty
@PutMapping("/application/{name}/property/{prop}") public org.springframework.http.ResponseEntity<Property> updateProperty(@PathVariable("name") String name, @RequestBody Property property)
-
-