<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE rfc [
  <!ENTITY nbsp    "&#160;">
  <!ENTITY zwsp   "&#8203;">
  <!ENTITY nbhy   "&#8209;">
  <!ENTITY wj     "&#8288;">
]>
<?rfc toc="yes"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes" ?>
<?rfc compact="yes"?>
<?rfc subcompact="no"?>
<?rfc linkmailto="no" ?>
<?rfc editing="no" ?>
<?rfc comments="yes" ?>
<?rfc inline="yes"?>
<?rfc rfcedstyle="yes"?>
<?rfc-ext allow-markup-in-artwork="yes" ?>
<?rfc-ext include-index="no" ?>
<!--<?rfc strict="no"?> -->
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" docName="draft-ietf-netconf-list-pagination-rc-01" category="std" consensus="true" ipr="trust200902" updates="8040" obsoletes="" submissionType="IETF" xml:lang="en" tocInclude="true" symRefs="true" sortRefs="true" version="3">
  <!-- xml2rfc v2v3 conversion 3.16.0 -->
  <front>
    <title abbrev="RESTCONF Pagination Support">
        RESTCONF Extensions to Support List Pagination
    </title>
    <seriesInfo name="Internet-Draft" value="draft-ietf-netconf-list-pagination-rc-01"/>
    <author fullname="Kent Watsen" initials="K." surname="Watsen">
      <organization>Watsen Networks</organization>
      <address>
        <email>kent+ietf@watsen.net</email>
      </address>
    </author>
    <author fullname="Qin Wu" initials="Q." surname="Wu">
      <organization>Huawei Technologies</organization>
      <address>
        <postal>
          <street>101 Software Avenue, Yuhua District</street>
          <city>Nanjing</city>
          <region>Jiangsu</region>
          <code>210012</code>
          <country>China</country>
        </postal>
        <email>bill.wu@huawei.com</email>
      </address>
    </author>
    <author fullname="Olof Hagsand" initials="O." surname="Hagsand">
      <organization>Netgate</organization>
      <address>
        <email>olof@hagsand.se</email>
      </address>
    </author>
    <author fullname="Hongwei Li" initials="H." surname="Li">
      <organization>Hewlett Packard Enterprise</organization>
      <address>
        <email>flycoolman@gmail.com</email>
      </address>
    </author>
    <author fullname="Per Andersson" initials="P." surname="Andersson">
      <organization>Cisco Systems</organization>
      <address>
        <email>perander@cisco.com</email>
      </address>
    </author>
    <date/>
    <area>OPS Area</area>
    <workgroup>NETCONF Working Group</workgroup>
    <abstract>
      <t>This document defines a mapping of the list pagination mechanism
        defined in <xref target="I-D.ietf-netconf-list-pagination" format="default"/>
        to RESTCONF <xref target="RFC8040" format="default"/>.</t>
      <t>This document updates RFC 8040, to declare "list" and "leaf-list" as
        valid resource targets for the RESTCONF GET and DELETE
        operations, to define GET query parameters necessary
        for list pagination, and to define a media-type for
        XML-based lists.</t>
    </abstract>
  </front>
  <middle>
    <section anchor="intro" numbered="true" toc="default">
      <name>Introduction</name>
      <t>This document defines a mapping of the list pagination mechanism
        defined in <xref target="I-D.ietf-netconf-list-pagination" format="default"/>
        to RESTCONF <xref target="RFC8040" format="default"/>.</t>
      <t>This document updates RFC 8040, as described in <xref target="updates" format="default"/>.</t>
      <t>Declaring "list" and "leaf-list" as valid resource targets
        for the GET operation is necessary for list pagination.  Declaring
        these nodes as valid resource targets for the DELETE operation 
        merely completes the solution for RESTCONF.</t>
      <section numbered="true" toc="default">
        <name>Terminology</name>
        <t>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL
          NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED",
          "MAY", and "OPTIONAL" in this document are to be interpreted as
          described in BCP 14 <xref target="RFC2119" format="default"/> <xref target="RFC8174" format="default"/>
          when, and only when, they appear in all capitals, as shown here.</t>
      </section>
      <section numbered="true" toc="default">
        <name>Conventions</name>
        <t>Various examples used in this document use a placeholder
          value for binary data that has been base64 encoded (e.g.,
          "BASE64VALUE=“).  This placeholder value is used as real
          base64 encoded structures are often many lines long and
          hence distracting to the example being presented.</t>
      </section>
    </section>
    <!-- intro -->

    <section anchor="updates" numbered="true" toc="default">
      <name>Updates to RFC 8040</name>
      <section numbered="true" toc="default">
        <name>Resource Targets</name>
        <t>This document extends <xref section="3.5" target="RFC8040" relative="#FIXME"/>
          to add "list" and "leaf-list" nodes (not just their entries)
          as valid data resources for the "GET" and "DELETE" operations.</t>
      </section>
      <section numbered="true" toc="default">
        <name>Media Type</name>
        <t>This document extends <xref section="3.2" target="RFC8040" relative="#FIXME"/>
          to add a new media type, "application/yang-data+xml-list", to
          encode "list" and "leaf-list" nodes in XML.</t>
        <t>The "application/yang-data+xml-list" media-type defines a
          pseudo top-level element called "xml-list" that is used to
          wrap the response set, thus ensuring that a single top-level
          element is returned for the XML encoding", as required by <xref section="4.3" target="RFC8040" relative="#FIXME"/>.</t>
        <t>For JSON, the existing "application/yang-data+json" media type is
          sufficient, as the JSON format has built-in support for encoding
          arrays.</t>
        <t>The "application/yang-data+xml-list" media type is registered
          in <xref target="media-type" format="default"/>.</t>
      </section>
      <section numbered="true" toc="default">
        <name>Query Parameters</name>
        <t>This document extends <xref section="4.8" target="RFC8040" relative="#FIXME"/>
          to add new query parameters "limit", "offset", "cursor", "direction",
          "sort-by", "where", and "sublist-list".</t>
        <t>These six query parameters correspond to those defined in
          Sections 3.1 and 3.2 in <xref target="I-D.ietf-netconf-list-pagination" format="default"/>.</t>
        <artwork name="" type="" align="left" alt=""><![CDATA[
+-----------+---------+-----------------------------------------+
| Name      | Methods | Description                             |
+-----------+---------+-----------------------------------------+
| limit     | GET,    | Limits the number of entries returned.  |
|           | HEAD    | If not specified, the number of entries |
|           |         | that may be returned is unbounded.      |
|           |         |                                         |
| offset    | GET,    | Indicates the number of entries in the  |
|           | HEAD    | result set that should the skipped over |
|           |         | when preparing the response.  If not    |
|           |         | specified, then no entries in the       |
|           |         | result set are skipped.                 |
|           |         |                                         |
| cursor    | GET,    | Indicates where to start the working    |
|           | HEAD    | result set, the previous entries are    |
|           |         | skipped over.  If not specified, then   |
|           |         | no entries in the result set are        |
|           |         | skipped over.                           |
|           |         |                                         |
| direction | GET,    | Indicates the direction that the result |
|           | HEAD    | set is to be traversed.  If not         |
|           |         | specified, then the result set is       |
|           |         | traversed in the "forwards" direction.  |
|           |         |                                         |
| sort-by   | GET,    | Indicates the node name that the result |
|           | HEAD    | set should be sorted by.  If not        |
|           |         | specified, then the result set's        |
|           |         | default order is used, per YANG's       |
|           |         | "ordered-by" statement.                 |
|           |         |                                         |
| where     | GET,    | Specifies a filter expression that      |
|           | HEAD    | result set entries must match.  If      |
|           |         | not specified, then no entries are      |
|           |         | filtered from the result set.           |
|           |         |                                         |
| sublist-  | GET,    | Limits the number of entries returned   |
|  limit    | HEAD    | returned for descendent lists and       |
|           |         | leaf-lists. If not specified, the       |
|           |         | number of entries that may be returned  |
|           |         | is unbounded.                           |
+-----------+---------+-----------------------------------------+
]]></artwork>
        <t>For all of the query parameters, the query parameter is only
          allowed for the GET and HEAD methods on "list" and "leaf-list"
          data resources. A "400 Bad Request" status-line MUST be returned
          if used with any other method or resource type. The error-tag
          value "operation-not-supported" is used in this case.</t>
        <t>Per the conformance defined in <xref section="3.1" target="I-D.ietf-netconf-list-pagination" relative="#FIXME"/>,
          all of these parameters MUST be supported for all lists and
          leaf-lists, but servers MAY disable the support for some or all
          "config false" lists, as described in <xref section="3.3" target="I-D.ietf-netconf-list-pagination" relative="#FIXME"/>.</t>
        <section numbered="true" toc="default">
          <name>The "limit" Query Parameter</name>
          <t>The "limit" query parameter corresponds to the "limit"
            parameter defined in <xref section="3.1.6" target="I-D.ietf-netconf-list-pagination" relative="#FIXME"/>.</t>
          <t>If the limit value is invalid, then a "400 Bad Request"
            status-line MUST be returned with the error-type value
            "application" and error-tag value "invalid-value".</t>
        </section>
        <section numbered="true" toc="default">
          <name>The "offset" Query Parameter</name>
          <t>The "offset" query parameter corresponds to the "offset"
            parameter defined in <xref section="3.1.4" target="I-D.ietf-netconf-list-pagination" relative="#FIXME"/>.</t>
          <t>If the offset value is invalid, a "400 Bad Request" status-line
            MUST be returned with the error-type value "application" and
            error-tag value "invalid-value".</t>
          <t>If the offset value exceeds the number of entries in the
            working result set, then a "416 Range Not Satisfiable"
            status-line MUST be returned with the error-type value
            "application", error-tag value "invalid-value", and SHOULD also
            include the "offset-out-of-range" identity as error-app-tag
            value.</t>
        </section>
        <section numbered="true" toc="default">
          <name>The "cursor" Query Parameter</name>
          <t>The "cursor" querey parameter corresponds to the "cursor"
            parameter defined in <xref section="3.1.5" target="I-D.ietf-netconf-list-pagination" relative="#FIXME"/>.</t>
          <t>If the cursor value is unknown, i.e. the key does not exist,
            a "404 Not Found" status-line MUST be returned with the error-type
            value "application" and error-tag value "invalid-value", and SHOULD
            also include the "cursor-not-found" identity as error-app-tag
            value.</t>
        </section>
        <section numbered="true" toc="default">
          <name>The "direction" Query Parameter</name>
          <t>The "direction" query parameter corresponds to the "direction"
            parameter defined in <xref section="3.1.3" target="I-D.ietf-netconf-list-pagination" relative="#FIXME"/>.</t>
          <t>If the direction value is invalid, then a "400 Bad Request"
            status-line MUST be returned with the error-type value
            "application" and error-tag value "invalid-value".</t>
        </section>
        <section numbered="true" toc="default">
          <name>The "sort-by" Query Parameter</name>
          <t>The "sort-by" query parameter corresponds to the "sort-by"
            parameter defined in <xref section="3.1.2" target="I-D.ietf-netconf-list-pagination" relative="#FIXME"/>.</t>
          <t>If the specified node identifier is invalid, then a "400 Bad
            Request" status-line MUST be returned with the error-type value
            "application" and error-tag value "invalid-value".</t>
        </section>
        <section numbered="true" toc="default">
          <name>The "where" Query Parameter</name>
          <t>The "where" query parameter corresponds to the "where"
            parameter defined in <xref section="3.1.1" target="I-D.ietf-netconf-list-pagination" relative="#FIXME"/>.</t>
          <t>If the specified XPath expression is invalid, then a "400 Bad
            Request" status-line MUST be returned with the error-type value
            "application" and error-tag value "invalid-value".</t>
        </section>
        <section numbered="true" toc="default">
          <name>The "sublist-limit" Query Parameter</name>
          <t>The "sublist-limit" query parameter corresponds to the
            "sublist-limit" parameter defined in <xref section="3.2.1" target="I-D.ietf-netconf-list-pagination" relative="#FIXME"/>.</t>
          <t>If the sumlist-limit value is invalid, then a "400 Bad Request"
            status-line MUST be returned with the error-type value
            "application" and error-tag value "invalid-value".</t>
        </section>
      </section>
    </section>
    <!-- Updates to RFC 8040 -->


    <section numbered="true" toc="default">
      <name>IANA Considerations</name>
      <section numbered="true" toc="default">
        <name>The "RESTCONF Capability URNs" Registry</name>
        <t>This document registers six capabilities in the RESTCONF
          Capability URNs <xref target="RFC8040" format="default"/> maintained at
          <eref target="https://www.iana.org/assignments/restconf-capability-urns/restconf-capability-urns.xhtml"/>.
          Following the instructions defined in <xref section="11.4" target="RFC8040" relative="#FIXME"/>,
          the below registrations are requested:</t>
        <t>All the registrations are to use this document (RFC XXXX)
          for the "Reference" value.</t>
        <artwork name="" type="" align="left" alt=""><![CDATA[
Index           Capability Identifier
---------------------------------------------------------------------
:limit          urn:ietf:params:restconf:capability:limit:1.0
:offset         urn:ietf:params:restconf:capability:offset:1.0
:cursor         urn:ietf:params:restconf:capability:cursor:1.0
:direction      urn:ietf:params:restconf:capability:direction:1.0
:sort-by        urn:ietf:params:restconf:capability:sort-by:1.0
:where          urn:ietf:params:restconf:capability:where:1.0
:sublist-limit  urn:ietf:params:restconf:capability:sublist-limit:1.0
]]></artwork>
      </section>
      <section numbered="true" toc="default">
        <name>The "Media Types" Registry</name>
        <t>This document registers one media type in the "application"
          subregistry of the Media Types registry <xref target="RFC6838" format="default"/>
          <xref target="RFC4855" format="default"/> maintained at <eref target="https://www.iana.org/assignments/media-types/media-types.xhtml#application"/>.
            Following the format defined in <xref target="RFC4855" format="default"/>, the below
            registration is requested:</t>
        <section anchor="media-type" numbered="true" toc="default">
          <name>Media Type "application/yang-data+xml-list"</name>
          <artwork name="" type="" align="left" alt=""><![CDATA[Type name: application

   Subtype name: yang-data+xml-list

   Required parameters: None

   Optional parameters: None

   Encoding considerations: 8-bit
      Each conceptual YANG data node is encoded according to the
      XML Encoding Rules and Canonical Format for the specific
      YANG data node type defined in [RFC7950]. 

   Security considerations: Security considerations related
      to the generation and consumption of RESTCONF messages
      are discussed in Section 12 of RFC 8040.  Additional
      security considerations are specific to the semantics
      of particular YANG data models.  Each YANG module is
      expected to specify security considerations for the
      YANG data defined in that module.

   Interoperability considerations: RFC XXXX specifies the
      format of conforming messages and the interpretation
      thereof.

   Published specification: RFC XXXX

   Applications that use this media type: Instance document data
      parsers used within a protocol or automation tool that
      utilize the YANG Patch data structure.

   Fragment identifier considerations: Fragment identifiers for
      this type are not defined.  All YANG data nodes are
      accessible as resources using the path in the request URI.

   Additional information:

      Deprecated alias names for this type: N/A
      Magic number(s): N/A
      File extension(s): None
      Macintosh file type code(s): "TEXT"

   Person & email address to contact for further information:
      See the Authors' Addresses section of RFC XXXX.

   Intended usage: COMMON

   Restrictions on usage: N/A

   Author: See the Authors' Addresses section of RFC XXXX.

   Change controller: Internet Engineering Task Force
      (mailto:iesg@ietf.org).

   Provisional registration? (standards tree only): no
]]></artwork>
        </section>
      </section>
    </section>
    <section anchor="security" numbered="true" toc="default">
      <name>Security Considerations</name>
      <t>This document introduces protocol operations for paging
        through data already provided by the RESTCONF protocol, and
        hence does not introduce any new security considerations.</t>
      <t>This document does not define a YANG module and hence there
        are no data modeling considerations beyond those discussed in
        <xref target="I-D.ietf-netconf-list-pagination" format="default"/>.</t>
    </section>
  </middle>
  <back>
    <references>
      <name>References</name>
      <references>
        <name>Normative References</name>
        <reference anchor="RFC2119" target="https://www.rfc-editor.org/info/rfc2119" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml">
          <front>
            <title>Key words for use in RFCs to Indicate Requirement Levels</title>
            <author fullname="S. Bradner" initials="S." surname="Bradner"/>
            <date month="March" year="1997"/>
            <abstract>
              <t>In many standards track documents several words are used to signify the requirements in the specification.  These words are often capitalized.  This document defines these words as they should be interpreted in IETF documents.  This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="2119"/>
          <seriesInfo name="DOI" value="10.17487/RFC2119"/>
        </reference>
        <!--<?rfc include="reference.RFC.3688.xml"?>
      <?rfc include="reference.RFC.6020.xml"?>
      <?rfc include="reference.RFC.6241.xml"?>
      <?rfc include="reference.RFC.6242.xml"?>
      <?rfc include="reference.RFC.7950.xml"?>-->
      <reference anchor="RFC8040" target="https://www.rfc-editor.org/info/rfc8040" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8040.xml">
          <front>
            <title>RESTCONF Protocol</title>
            <author fullname="A. Bierman" initials="A." surname="Bierman"/>
            <author fullname="M. Bjorklund" initials="M." surname="Bjorklund"/>
            <author fullname="K. Watsen" initials="K." surname="Watsen"/>
            <date month="January" year="2017"/>
            <abstract>
              <t>This document describes an HTTP-based protocol that provides a programmatic interface for accessing data defined in YANG, using the datastore concepts defined in the Network Configuration Protocol (NETCONF).</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8040"/>
          <seriesInfo name="DOI" value="10.17487/RFC8040"/>
        </reference>
        <reference anchor="RFC8174" target="https://www.rfc-editor.org/info/rfc8174" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml">
          <front>
            <title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
            <author fullname="B. Leiba" initials="B." surname="Leiba"/>
            <date month="May" year="2017"/>
            <abstract>
              <t>RFC 2119 specifies common key words that may be used in protocol specifications.  This document aims to reduce the ambiguity by clarifying that only UPPERCASE usage of the key words have the defined special meanings.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="8174"/>
          <seriesInfo name="DOI" value="10.17487/RFC8174"/>
        </reference>
        <!--<?rfc include="reference.RFC.8342.xml"?>-->

      <!-- START PLACEHOLDER UNTIL THE LP draft is submitted
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-netconf-list-pagination.xml"/>
      -->
      <reference anchor="I-D.ietf-netconf-list-pagination" target="FIXME">
          <front>
            <title>List Pagination...</title>
            <author/>
          </front>
        </reference>
        <!-- END PLACEHOLDER UNTIL THE LP draft is submitted -->
    </references>
      <references>
        <name>Informative References</name>
        <!--<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-netconf-list-pagination-nc.xml"/>-->
      <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-netconf-restconf-collection.xml"/>
        <reference anchor="RFC4855" target="https://www.rfc-editor.org/info/rfc4855" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.4855.xml">
          <front>
            <title>Media Type Registration of RTP Payload Formats</title>
            <author fullname="S. Casner" initials="S." surname="Casner"/>
            <date month="February" year="2007"/>
            <abstract>
              <t>This document specifies the procedure to register RTP payload formats as audio, video, or other media subtype names.  This is useful in a text-based format description or control protocol to identify the type of an RTP transmission. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="4855"/>
          <seriesInfo name="DOI" value="10.17487/RFC4855"/>
        </reference>
        <reference anchor="RFC6838" target="https://www.rfc-editor.org/info/rfc6838" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6838.xml">
          <front>
            <title>Media Type Specifications and Registration Procedures</title>
            <author fullname="N. Freed" initials="N." surname="Freed"/>
            <author fullname="J. Klensin" initials="J." surname="Klensin"/>
            <author fullname="T. Hansen" initials="T." surname="Hansen"/>
            <date month="January" year="2013"/>
            <abstract>
              <t>This document defines procedures for the specification and registration of media types for use in HTTP, MIME, and other Internet protocols.  This memo documents an Internet Best Current Practice.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="13"/>
          <seriesInfo name="RFC" value="6838"/>
          <seriesInfo name="DOI" value="10.17487/RFC6838"/>
        </reference>
        <!--<?rfc include="reference.RFC.8341.xml"?>
      <?rfc include="reference.RFC.8446.xml"?>-->
      <!-- <?rfc include="reference.RFC.8340.xml"?> Tree Diagrams -->
      <!--<?rfc include="reference.RFC.6991.xml"?> YANG Types-->
    </references>
    </references>
    <section numbered="true" toc="default">
      <name>Example YANG Module</name>
      <t>The examples within this document use the "example-social" YANG
        module defined in <xref section="A.1" target="I-D.ietf-netconf-list-pagination" relative="#FIXME"/>.</t>
    </section>
    <section numbered="true" toc="default">
      <name>Example Data Set</name>
      <t>The Example Data Set used by the examples is defined in
        <xref section="A.2" target="I-D.ietf-netconf-list-pagination" relative="#FIXME"/>.</t>
    </section>
    <section numbered="true" toc="default">
      <name>Example Queries</name>
      <section numbered="true" toc="default">
        <name>List pagination with all query parameters</name>
        <t>This example mimics that <xref section="A.3.7" target="I-D.ietf-netconf-list-pagination" relative="#FIXME"/>.
        </t>
        <artwork name="" type="" align="left" alt=""><![CDATA[
=============== NOTE: '\' line wrapping per RFC 8792 ================

GET /restconf/ds/ietf-datastores:running/example-social:members/memb\
er?where=//stats//joined[starts-with(@timestamp,'2020')]&sort-by=tim\
estamp&direction=backwards&offset=2&limit=2&sublist-limit=1  HTTP/1.1
Host: example.com
Accept: application/yang-data+xml-list
]]></artwork>
        <t>Response from the RESTCONF server:
        </t>
        <artwork name="" type="" align="left" alt=""><![CDATA[
=============== NOTE: '\' line wrapping per RFC 8792 ================

HTTP/1.1 200 OK
Date: Thu, 26 Jan 2017 20:56:30 GMT
Server: example-server
Last-Modified: Thu, 26 Jan 2017 20:55:30 GMT
Content-Type: application/yang-data+xml-list

<lp:xml-list xmlns:lp="urn:ietf:params:xml:ns:yang:ietf-restconf-lis\
t-pagination"
  xmlns="http://example.com/ns/example-social">
  <member lp:remaining="1">
    <member-id>eric</member-id>
    <email-address>eric@example.com</email-address>
    <password>$0$1543</password>
    <avatar>BASE64VALUE=</avatar>
    <tagline>Go to bed with dreams; wake up with a purpose.</tagline>
    <following>alice</following>
    <posts>
      <post>
        <timestamp>2020-09-17T18:02:04Z</timestamp>
        <title>Son, brother, husband, father</title>
        <body>What's your story?</body>
      </post>
    </posts>
    <favorites>
      <bits lp:remaining="2">two</bits>
    </favorites>
    <stats>
      <joined>2020-09-17T19:38:32Z</joined>
      <membership-level>pro</membership-level>
      <last-activity>2020-09-17T18:02:04Z</last-activity>
    </stats>
  </member>
  <member lp:remaining="1">
    <member-id>bob</member-id>
    <email-address>bob@example.com</email-address>
    <password>$0$1543</password>
    <avatar>BASE64VALUE=</avatar>
    <tagline>Here and now, like never before.</tagline>
    <posts>
      <post lp:remaining="2">
        <timestamp>2020-08-14T03:32:25Z</timestamp>
        <body>Just got in.</body>
      </post>
    </posts>
    <favorites>
      <decimal64-numbers lp:remaining="1">3.14159</bits>
    </favorites>
    <stats>
      <joined>2020-08-14T03:30:00Z</joined>
      <membership-level>standard</membership-level>
      <last-activity>2020-08-14T03:34:30Z</last-activity>
    </stats>
  </member>
</lp:xml-list>
]]></artwork>
      </section>
      <section numbered="true" toc="default">
        <name>Deletion of a leaf-list</name>
        <t>This example illustrates using a "leaf-list" as the DELETE target.
        </t>
        <artwork name="" type="" align="left" alt=""><![CDATA[
=============== NOTE: '\' line wrapping per RFC 8792 ================

DELETE /restconf/ds/ietf-datastores:running/example-social:members/m\
ember=bob/favorites/decimal64-numbers HTTP/1.1
Host: example.com
Accept: application/yang-data+xml
]]></artwork>
        <t>Response from the RESTCONF server:
        </t>
        <artwork name="" type="" align="left" alt=""><![CDATA[
HTTP/1.1 204 No Content
Date: Thu, 26 Jan 2017 20:56:30 GMT
Server: example-server
]]></artwork>
      </section>
    </section>
    <!-- Example Queries -->

    <!--
    <section title="Contributors" numbered="no">
      <figure>
        <artwork>David Cornejo
dcornejo@gmail.com</artwork>
      </figure>
    </section>
    -->
    <section numbered="false" toc="default">
      <name>Acknowledgements</name>
      <t>This work has benefited from the discussions of restconf resource
      collection over the years, in particular,
      <xref target="I-D.ietf-netconf-restconf-collection" format="default"/>. The
      authors additionally thank the following for lively discussions on
      list (ordered by first name):
        Andy Bierman,
        Martin Björklund,
        and Robert Varga
      </t>
    </section>
  </back>
</rfc>
