@Test void testUpsertEntityType() throws Exception { mockMvc .perform( post("/plugin/metadata-manager/entityType") .contentType(APPLICATION_JSON_UTF8) .content(getEditorEntityTypeJson())) .andExpect(status().isOk()); verify(metadataManagerService, times(1)).upsertEntityType(getEditorEntityType()); }
@ResponseStatus(OK) @PostMapping(value = "/entityType", consumes = "application/json") public void upsertEntityType(@RequestBody EditorEntityType editorEntityType) { metadataManagerService.upsertEntityType(editorEntityType); }
MetadataManagerController extends PluginController { @ResponseStatus(OK) @PostMapping(value = "/entityType", consumes = "application/json") public void upsertEntityType(@RequestBody EditorEntityType editorEntityType) { metadataManagerService.upsertEntityType(editorEntityType); } }
MetadataManagerController extends PluginController { @ResponseStatus(OK) @PostMapping(value = "/entityType", consumes = "application/json") public void upsertEntityType(@RequestBody EditorEntityType editorEntityType) { metadataManagerService.upsertEntityType(editorEntityType); } MetadataManagerController(
      MenuReaderService menuReaderService, MetadataManagerService metadataManagerService); }
MetadataManagerController extends PluginController { @ResponseStatus(OK) @PostMapping(value = "/entityType", consumes = "application/json") public void upsertEntityType(@RequestBody EditorEntityType editorEntityType) { metadataManagerService.upsertEntityType(editorEntityType); } 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 { @ResponseStatus(OK) @PostMapping(value = "/entityType", consumes = "application/json") public void upsertEntityType(@RequestBody EditorEntityType editorEntityType) { metadataManagerService.upsertEntityType(editorEntityType); } 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; }