@Test void testGetEditorPackages() throws Exception { when(metadataManagerService.getEditorPackages()).thenReturn(getEditorPackageResponse()); mockMvc .perform(get("/plugin/metadata-manager/editorPackages")) .andExpect(status().isOk()) .andExpect(content().contentType(APPLICATION_JSON_UTF8)) .andExpect(content().string(getEditorPackageResponseJson())); }
@ResponseBody @GetMapping(value = "/editorPackages", produces = "application/json") public List<EditorPackageIdentifier> getEditorPackages() { return metadataManagerService.getEditorPackages(); }
MetadataManagerController extends PluginController { @ResponseBody @GetMapping(value = "/editorPackages", produces = "application/json") public List<EditorPackageIdentifier> getEditorPackages() { return metadataManagerService.getEditorPackages(); } }
MetadataManagerController extends PluginController { @ResponseBody @GetMapping(value = "/editorPackages", produces = "application/json") public List<EditorPackageIdentifier> getEditorPackages() { return metadataManagerService.getEditorPackages(); } MetadataManagerController(
      MenuReaderService menuReaderService, MetadataManagerService metadataManagerService); }
MetadataManagerController extends PluginController { @ResponseBody @GetMapping(value = "/editorPackages", produces = "application/json") public List<EditorPackageIdentifier> getEditorPackages() { return metadataManagerService.getEditorPackages(); } MetadataManagerController(
      MenuReaderService menuReaderService, MetadataManagerService metadataManagerService); @GetMapping("/**") String init(Model model); @ResponseBody @GetMapping(value = "/editorPackages", produces = "application/json") List<EditorPackageIdentifier> getEditorPackages(); @ResponseBody @GetMapping(value = "/entityType/{id:.*}", produces = "application/json") EditorEntityTypeResponse getEditorEntityType(@PathVariable("id") String id); @ResponseBody @GetMapping(value = "/create/entityType", produces = "application/json") EditorEntityTypeResponse createEditorEntityType(); @ResponseStatus(OK) @PostMapping(value = "/entityType", consumes = "application/json") void upsertEntityType(@RequestBody EditorEntityType editorEntityType); @ResponseBody @GetMapping(value = "/create/attribute", produces = "application/json") EditorAttributeResponse createEditorAttribute(); }
MetadataManagerController extends PluginController { @ResponseBody @GetMapping(value = "/editorPackages", produces = "application/json") public List<EditorPackageIdentifier> getEditorPackages() { return metadataManagerService.getEditorPackages(); } MetadataManagerController(
      MenuReaderService menuReaderService, MetadataManagerService metadataManagerService); @GetMapping("/**") String init(Model model); @ResponseBody @GetMapping(value = "/editorPackages", produces = "application/json") List<EditorPackageIdentifier> getEditorPackages(); @ResponseBody @GetMapping(value = "/entityType/{id:.*}", produces = "application/json") EditorEntityTypeResponse getEditorEntityType(@PathVariable("id") String id); @ResponseBody @GetMapping(value = "/create/entityType", produces = "application/json") EditorEntityTypeResponse createEditorEntityType(); @ResponseStatus(OK) @PostMapping(value = "/entityType", consumes = "application/json") void upsertEntityType(@RequestBody EditorEntityType editorEntityType); @ResponseBody @GetMapping(value = "/create/attribute", produces = "application/json") EditorAttributeResponse createEditorAttribute(); static final String METADATA_MANAGER; static final String URI; }