Web service API

How to use PageSeeder's Web service API

get group discussion

/groups/{group}/discussions/{discussion} [GET]

com.pageseeder.comment.GetDiscussionForGroup

Description

Load a single discussion from the group specified in the request.

Parameters

NameDescriptionRequiredTypeDefault value
commentsthe comments to include, can be "none","first","last","all","archive" nostringall

Permission

Undocumented permissions requirements.

Response

This service returns a single discussion as a <discussion> element.

<discussion id="123"
            title="My thread"
            replycount="3"
            lastcommentid="234"
            lastcommentdate="2012-08-20T14:27:48+10:00">
   <uri id="789">...</uri>
   <locator fragment="2"/>
   <comment id="123"
            contentrole="File Attachment"
            created="2012-03-08T12:34:00+10:00">
      <title>My thread</title>
      <content type="text/plain">Some text</content>
      <attachment>
         <uri id="189">...</uri>
      </attachment>
      <attachment fragment="5">
         <uri id="289">...</uri>
      </attachment>
   </comment>
   <comment id="234">...</comment>
</discussion>

Error handling

CodeCause / Description
0x1316 the discussion was not found

Created on , last edited on