add new label test

This commit is contained in:
Mariela Michalek
2014-02-25 22:19:52 -03:00
parent fbea000aad
commit d36c52b40a
4 changed files with 38 additions and 3 deletions

View File

@@ -636,7 +636,7 @@ public class MindmapController extends BaseController {
mindmapService.removeLabel(mindmap, delegated);
}
@RequestMapping(method = RequestMethod.POST, value = "/labels/maps", consumes = {"application/json"})
@RequestMapping(method = RequestMethod.POST, value = "/labels/maps", consumes = { "application/xml","application/json"})
@ResponseStatus(value = HttpStatus.OK)
public void addLabel(@RequestBody RestLabel restLabel, @RequestParam(required = true) String ids) throws WiseMappingException {
int labelId = restLabel.getId();