Web service API

How to use PageSeeder's Web service API

list group discussions

/groups/{group}/discussions [GET]

com.pageseeder.comment.GetDiscussionsForGroup

Description

Load a list of discussions from the group specified in the request.​​​​​

 

Parameters

NameDescriptionRequiredTypeDefault value
comments Which comments should be loaded for each discussion no enum all
page The page to load no long 1
pagesize The number of results per page no long 10

Comments parameter

This parameter controls which comments should be loaded in a discussion. It can be one of:

  • all  to load all comments in the discussion
  • first  to load the first comment only
  • last  to load the last comment (reply) only
  • archive  to load all comments including archived ones

Permission

Undocumented permissions requirements.

Response

This service returns a <discussions> element listing each discussion in a <discussion> element.

<discussions>
   <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="234"
              contentrole="File Attachment"
              created="2012-03-08T12:34:00+10:00">
       <title>My thread</title>
       <content id="201"
                type="text/plain">
         Some text
       </content>
       <attachment>
         <uri id="189">...</uri>
       </attachment>
       <attachment fragment="5">
         <uri id="289">...</uri>
       </attachment>
     </comment>
   </discussion>
   <discussion id="100">
     ...
   </discussion>
 </discussions>

Error handling

No specific errors expected for this service.

Created on , last edited on