From: Martin Sunal Date: Thu, 30 Jan 2014 15:50:05 +0000 (+0100) Subject: BUG 388: corrected media type in /operations resource X-Git-Tag: autorelease-tag-v20140601202136_82eb3f9~541^2~1 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=6d607f131104ec8b8096cb6aea015674ba1e466c BUG 388: corrected media type in /operations resource There were added these media types for /operations resource: application/yang.operation+json application/yang.operation+xml Corrected handling of requests which have empty body and Content-Type has some value or is missing Change-Id: I148c22c4c6c28d0d13f2b717fe629b42d5c73f70 Signed-off-by: Martin Sunal --- diff --git a/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/rest/api/RestconfService.java b/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/rest/api/RestconfService.java index 5300e2f21b..848f2c48ab 100644 --- a/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/rest/api/RestconfService.java +++ b/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/rest/api/RestconfService.java @@ -9,6 +9,7 @@ package org.opendaylight.controller.sal.rest.api; import javax.ws.rs.Consumes; import javax.ws.rs.DELETE; +import javax.ws.rs.DefaultValue; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.PUT; @@ -23,30 +24,25 @@ import org.opendaylight.yangtools.yang.data.api.CompositeNode; /** * The URI hierarchy for the RESTCONF resources consists of an entry - * point container, 3 top-level resources, and 1 field. Refer to - * Section 5 for details on each URI. - *