1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-22 01:02:17 -05:00

XEP-0060: Add an example on returning fewer items than requested

This commit is contained in:
Emmanuel Gil Peyrot 2018-08-18 15:08:08 +01:00
parent e3b0861628
commit 0fdb7ec130

View File

@ -50,6 +50,14 @@
&stpeter; &stpeter;
&ralphm; &ralphm;
<revision>
<version>1.15.3</version>
<date>2018-08-18</date>
<initials>egp</initials>
<remark>
<p>Add a new sentence and example about what to do if there are fewer items than requested present in a node.</p>
</remark>
</revision>
<revision> <revision>
<version>1.15.2</version> <version>1.15.2</version>
<date>2018-05-14</date> <date>2018-05-14</date>
@ -2387,6 +2395,17 @@ And by opposing end them?
</items> </items>
</pubsub> </pubsub>
</iq> </iq>
]]></example>
<p>If there are fewer items in the node than requested, the service should just return all of them.</p>
<example caption='Service returns no items if it has none'><![CDATA[
<iq type='result'
from='pubsub.shakespeare.lit'
to='francisco@denmark.lit/barracks'
id='items2'>
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
<items node='princely_musings'/>
</pubsub>
</iq>
]]></example> ]]></example>
</section3> </section3>
<section3 topic='Requesting a Particular Item' anchor='subscriber-retrieve-requestone'> <section3 topic='Requesting a Particular Item' anchor='subscriber-retrieve-requestone'>