Skip to content
Snippets Groups Projects
Commit 7380d68c authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Added text/xml as accepted content type

parent ac65cc9f
Branches
Tags
No related merge requests found
Pipeline #878 passed
...@@ -23,8 +23,8 @@ public class CreateNodeController extends BaseNodeController { ...@@ -23,8 +23,8 @@ public class CreateNodeController extends BaseNodeController {
private String authority; private String authority;
@PutMapping(value = {"/nodes", "/nodes/**"}, @PutMapping(value = {"/nodes", "/nodes/**"},
consumes = {MediaType.APPLICATION_XML_VALUE, MediaType.APPLICATION_JSON_VALUE}, consumes = {MediaType.APPLICATION_XML_VALUE, MediaType.TEXT_XML_VALUE, MediaType.APPLICATION_JSON_VALUE},
produces = {MediaType.APPLICATION_XML_VALUE, MediaType.APPLICATION_JSON_VALUE}) produces = {MediaType.APPLICATION_XML_VALUE, MediaType.TEXT_XML_VALUE, MediaType.APPLICATION_JSON_VALUE})
public Node createNode(@RequestBody Node node, User principal) { public Node createNode(@RequestBody Node node, User principal) {
String path = getPath(); String path = getPath();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment