Query Content (Label)

0 Likes
over 3 years ago

Returns the content embedded in the specified artifact, for the specified content property

rolled back to the point in time specified by the label

 the content is extracted from the specified Content property 
  projectid a valid integer id representing a project on the server
viewid a valid integer id representing one of the views from the project
labelid a valid integer id representing one of the labels from the view
typeid a valid integer id representing a viewmember type on the server
  viewmemberid a valid integer id representing a viewmember (artifact instance) of the given type in the view
  sessionid a valid session for the logged on user running this query
  propertyid an optional valid integer id representing a content property of the given type in the view
 @return the content embedded in the specified content property

If a content property id is not specified, then the content of the first content property on the type is returned.

This is probably sufficient for most types which have a single content property.

For file types, the file content is checked out and returned.

usage example

http://localhost:8080/MicroFocusHubRESTService/rest/content/snapshot/projectid=0/viewid=1/labelid=2/typeid=3/viewmemberid=4;sessionid=7c5ceef9-7c79-4b8f-83ba-cb6e082ddd1d?propertyid=1234

Labels:

How To-Best Practice
Comment List
Anonymous
Related Discussions
Recommended