Query Content (Tip)

0 Likes
over 4 years ago

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

 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
  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/projectid=0/viewid=1/typeid=2/viewmemberid=3;sessionid=7c5ceef9-7c79-4b8f-83ba-cb6e082ddd1d?propertyid=1234

Labels:

How To-Best Practice
Comment List
Anonymous
Related Discussions
Recommended