Retrieve item published on node

HTTP URI: /rest/pubsub/

Available HTTP methods:


Method returns example content which contains all required and optional parameters that may be passed.


Command requires fields node and item-id to be filled

  • node - field contains id of node which items we want to list
  • item-id - field contains id of item to retrieve

Example content to list of items published on node with id example.

Using XML

Request in XML. 


Response in XML. 

  <title>Retrieve PubSub node item</title>
  <node label="Node" type="text-single">
  <item-id label="Item ID" type="text-single">
  <item label="Item" type="text-multi">
      <item expire-at="2015-05-13T14:05:00Z" id="item-1">
          <title>Example 1</title>
          <content>Example content</content>

inside item element there is XML encoded element which is published on node example with id item-1.

Using JSON

Request in JSON. 

  "node" : "example",
  "item-id" : "item-1"

Response in JSON. 

  "title" : "Retrieve PubSub node item",
  "node" : "example",
  "item-id" : "item-1",
  "item" : [
    "<item expire-at\"2015-05-13T14:05:00Z\" id=\"item-1\">
        <title>Example 1</title>
        <content>Example content</content>