Reference : JSON REST API reference : Elements : GET method
  
GET method
Use this method to retrieve the element details. You can use the View parameter to filter the attributes.
URL: https://fpserver.com:9443/fp/resources/workspaces/2/modules/1/elements/001.json
Accept header: application/json
Response body:
{"elementId":25,"alias":"b6ea2199-d243-4d4c-875f-0478b962b121","attributes":[{"Description":{"textValue":"","formattedTextValue":"","alias":"1c16e493-4a2e-4716-ab3d-8f8b13bcddd6","id":"3","type":"Text","editLink":"https://fpserver.com:9443/fp/resources/workspaces/49/modules/1/elements/25/attributes/3","xhtmlTextValue":"<div></div>","writable":"true"}},{"Title":{"textValue":"Infrastructure","formattedTextValue":"Infrastructure","alias":"111ab96b-35ac-4c78-a67f-acb46eafdc32","id":"2","type":"Text","editLink":"https://fpserver.com:9443/fp/resources/workspaces/49/modules/1/elements/25/attributes/2","xhtmlTextValue":"<div>Infrastructure</div>","writable":"true"}},{"ID":{"alias":"05794d66-45d2-402b-a36b-17657ec6b378","id":"228","type":"UniqueId","value":"001","writable":"false"}}],"links":[{"rel":"alternate","href":"https://fpserver.com:9443/fp/resources/workspaces/49/modules/1/elements/25?view=427"},{"href":"https://fpserver.com:9443/fp/workspace/49/element/25"}]}
Supported parameters for the GET method
The following parameters can be used with the GET method:
view
Use the view parameter to specify the view ID for retrieving the attributes that are in the view.
Type: Integer
filter
The filter parameter must be used with the view parameter. Use the filter parameter to pass the filter ID for retrieving attributes based on the filter criteria.
Type: Integer
For example, view=14&filter=1.
fields
Use the fields parameter to pass an XPath expression to retrieve specific set of attributes.
Type: String
For example, fields=attributes/(ID|Title|Owner).
Note '|' must be encoded as '%7C'
includeHistoryOfAttribute, start, end
Set the includeHistoryOfAttribute parameter to true and specify the start and end date parameters to retrieve the history of the attributes. The following formats are supported for the date parameters.
yyyy-MM-dd'T'HH:mm:ss
yyyy-MM-dd'T'HH:mm
yyyy-MM-dd
yyyy-MM-dd HH:mm:ss
yyyy-MM-dd HH:mm
Types: includeHistoryOfAttributes: Boolean, start: Date or Date Time, end: Date or Date time
For example:
includeHistoryOfAttributes=true&start=2011-03-22T12:00:00+01:00&end=2011-06- 22T12:00:00+01:00
includeHistoryOfAttributes=true&start=2011-03-22T12:00+GMT+01:00&end=2011-06-22T12:00+GMT+01:00
genericTimeGrid
Set the genericTimeGrid parameter to true to retrieve the time grid attribute sheets in a generic format. This can be used for reporting by using Rational Insight.
Note The user can also supply generictimegrid as a parameter.
Type: Boolean
optimize
Set the optimize parameter to true to optimize the content. If the optimize parameter is set to true, the response does not include rich text and formula information of the attributes. Also alternate URLs to the element are not provided in the response.
Type: Boolean
includeLinkTable
Set the includeLinkTable parameter to true to include attributes from the link targets in the response. The view should have a link table defined for the Link or LinkList attributes. All visible attributes that are shown in the link table set up will be part of the Link or LinkList attribute response.
Type: Boolean
Go up to
Elements