@Test void testInit() throws Exception { mockMvc .perform(get(AppManagerController.URI)) .andExpect(status().is(200)) .andExpect(view().name("view-app-manager")); }
@GetMapping public String init() { return "view-app-manager"; }
AppManagerController extends PluginController { @GetMapping public String init() { return "view-app-manager"; } }
AppManagerController extends PluginController { @GetMapping public String init() { return "view-app-manager"; } AppManagerController(AppManagerService appManagerService, DataService dataService); }
AppManagerController extends PluginController { @GetMapping public String init() { return "view-app-manager"; } AppManagerController(AppManagerService appManagerService, DataService dataService); @GetMapping String init(); @ResponseBody @GetMapping("/apps") List<AppResponse> getApps(); @ResponseStatus(HttpStatus.OK) @PostMapping("/activate/{id}") void activateApp(@PathVariable(value = "id") String id); @ResponseStatus(HttpStatus.OK) @PostMapping("/deactivate/{id}") void deactivateApp(@PathVariable(value = "id") String id); @ResponseStatus(HttpStatus.OK) @DeleteMapping("/delete/{id}") void deleteApp(@PathVariable("id") String id); @ResponseStatus(HttpStatus.OK) @PostMapping("/upload") void uploadApp(@RequestParam("file") MultipartFile multipartFile); }
AppManagerController extends PluginController { @GetMapping public String init() { return "view-app-manager"; } AppManagerController(AppManagerService appManagerService, DataService dataService); @GetMapping String init(); @ResponseBody @GetMapping("/apps") List<AppResponse> getApps(); @ResponseStatus(HttpStatus.OK) @PostMapping("/activate/{id}") void activateApp(@PathVariable(value = "id") String id); @ResponseStatus(HttpStatus.OK) @PostMapping("/deactivate/{id}") void deactivateApp(@PathVariable(value = "id") String id); @ResponseStatus(HttpStatus.OK) @DeleteMapping("/delete/{id}") void deleteApp(@PathVariable("id") String id); @ResponseStatus(HttpStatus.OK) @PostMapping("/upload") void uploadApp(@RequestParam("file") MultipartFile multipartFile); static final String ID; static final String URI; }