Class Index | File Index

Classes


Class GetDiscussion

Returns the discussion of the asset of the given id.
Defined in: getDiscussion.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Returns the discussions for the given asset.
Class Detail
GetDiscussion(id)
Returns the discussions for the given asset. Gets the discussion for the asset given by AssetID in 'id'. The list of discussions is ordered in ascending date created.
'MBurl'/wf/restapi/1/getDiscussion?id=AssetId
<a target="_blank" href='http://127.0.0.1:55555/wf/restapi/1/getDiscussion?id=12345>http://127.0.0.1:55555/wf/restapi/1/getDiscussion?id=12345</a>
Parameters:
id
Asset ID to get the discussion from.
Returns:
A structure similar to below is returned.
{
 'id': AssetId,
 'discussion': [
  {
   "date": "Tue, 16 Feb 2016 13:36:01 -0600",
      "endTime": "-1.0",
      "globalAdminEdited": "false",
      "startTime": "-1.0",
      "text": "Sample comment",
      "dateEdited": "Tue, 16 Feb 2016 13:36:03 -0600",
      "page": "1",
      "user": "root",
      "uid": "BFAD9D5B-3316-4D58-E50B-34C554C0FF93"
  },
  ...
 ]
}

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Dec 15 2023 01:43:54 GMT-0600 (CST)