@AdminController @ResponseBody @RequestMapping(value="/api/applications") 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<?> |
register(Application application,
org.springframework.web.util.UriComponentsBuilder builder)
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(method=POST)
public org.springframework.http.ResponseEntity<?> register(@RequestBody
Application application,
org.springframework.web.util.UriComponentsBuilder builder)
application - The application infos.@RequestMapping(method=GET) public Collection<Application> applications(@RequestParam(value="name",required=false) String name)
name - the name to search for@RequestMapping(value="/{id}",
method=GET)
public org.springframework.http.ResponseEntity<?> get(@PathVariable
String id)
id - The application identifier.@RequestMapping(value="/{id}",
method=DELETE)
public org.springframework.http.ResponseEntity<?> unregister(@PathVariable
String id)
id - The application id.Copyright © 2018 codecentric AG. All rights reserved.