@ResponseBody public class RegistryController extends Object
| Constructor and Description |
|---|
RegistryController(ApplicationRegistry registry) |
| Modifier and Type | Method and Description |
|---|---|
Collection<Application> |
applications(String name)
List all registered applications with name
|
org.springframework.http.ResponseEntity<?> |
get(String id)
Get a single application out of the registry.
|
org.springframework.http.ResponseEntity<Application> |
register(Application app)
Register an application within this admin application.
|
org.springframework.http.ResponseEntity<?> |
unregister(String id)
Unregister an application within this admin application.
|
public RegistryController(ApplicationRegistry registry)
@RequestMapping(value="/api/applications",
method=POST)
public org.springframework.http.ResponseEntity<Application> register(@RequestBody
Application app)
app - The application infos.@RequestMapping(value="/api/applications",
method=GET)
public Collection<Application> applications(@RequestParam(value="name",required=false)
String name)
name - the name to search for@RequestMapping(value="/api/applications/{id}",
method=GET)
public org.springframework.http.ResponseEntity<?> get(@PathVariable
String id)
id - The application identifier.@RequestMapping(value="/api/applications/{id}",
method=DELETE)
public org.springframework.http.ResponseEntity<?> unregister(@PathVariable
String id)
id - The application id.Copyright © 2016 codecentric AG. All rights reserved.