Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

Revision history [back]

click to hide/show revision 1
initial version

Not 100% sure this is your problem, but you may need to specify the Accept value in your request. Looking at RestconfService.java you will see that the readConfigurationData has accept headers of application/json, application/xml, text/xml, application/yang.data+json, application/yang.data+xml, which means you need to add one of those to the accept headers.

@GET<br>
@Path("/config/{identifier:.+}")<br>
@Produces({Draft02.MediaTypes.DATA+JSON,Draft02.MediaTypes.DATA+XML, <br>
           MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_XML})<br>
public StructuredData readConfigurationData(@Encoded @PathParam("identifier") String identifier);