B.2.5. 编辑数据资源

在本例中,客户端通过发送数据资源的PATCH添加“album”子资源来修改一个数据节点:

  1. PATCH /restconf/data/example-jukebox:jukebox/library/artist=Nick%20Cave%20and%20the%20Bad%20Seeds HTTP/1.1
  2. Host: example.com
  3. Content-Type: application/yang-data+xml
  4. <artist xmlns="http://example.com/ns/example-jukebox">
  5. <name>Nick Cave and the Bad Seeds</name>
  6. <album>
  7. <name>The Good Son</name>
  8. <year>1990</year>
  9. </album>
  10. </artist>