-
Bug
-
Resolution: Done
-
Medium
-
None
-
None
All calls in RFC8040 Notifications support application/yang-data+xml. Example:
GET /restconf/data/ietf-restconf-monitoring:restconf-state/\ streams HTTP/1.1 Host: example.com Accept: application/yang-data+xml
<streams xmlns="urn:ietf:params:xml:ns:yang:ietf-restconf-monitoring"> <stream> <name>NETCONF</name> <description>default NETCONF event stream</description> <replay-support>true</replay-support> <replay-log-creation-time>\ 2007-07-08T00:00:00Z\ </replay-log-creation-time> <access> <encoding>xml</encoding> <location>https://example.com/streams/NETCONF\ </location> </access> <access> <encoding>json</encoding> <location>https://example.com/streams/NETCONF-JSON\ </location> </access> </stream> </streams>
Now our code return not supported.
Calls to controller :
127.0.0.1:8181/rests/data/ietf-restconf-monitoring:restconf-state/streams
127.0.0.1:8181/rests/data/ietf-restconf-monitoring:restconf-state/streams/stream=netconf-session-end
127.0.0.1:8181/rests/data/ietf-restconf-monitoring:restconf-state/streams/stream=netconf-session-end/access=XML/location