Reference : REST XML API reference : Attributes : GET method
  
GET method
Use this method to retrieve the attribute details.
URL: https://fpserver.com:9443/fp/resources/workspaces/2/modules/1/elements/15/attributes/220.xml
Accept header: application/xml
Response body:
<ns:Text_List writable="true" xsi:schemaLocation="https://fpserver.com:9443/fp/namespace/workspaces/2/modules/1/attribute https://fpserver.com:9443/fp/resources/workspaces/2/modules/1/elements/15/attributes/220/attribute.xsd"> <ns:textList> <fp:textListEntry createdDate="2013-05-02T13:50:09+05:30" lastChangedDate="2013-05-02T13:50:09+05:30"> <fp:author title="Admin"/><fp:lastChangedBy title="Admin"/> <fp:textValue>Sample Text 1</fp:textValue> <fp:formattedTextValue>Sample Text 1<BR></fp:formattedTextValue> <fp:xhtmlTextValue><div>Sample Text 1</div></fp:xhtmlTextValue> <fp:link href="https://fpserver.com:9443/fp/resources/workspaces/2/modules/1/elements/15/attributes/220/entries/1367482809131" rel="edit"/> </fp:textListEntry> <fp:textListEntry createdDate="2013-05-02T13:50:17+05:30" lastChangedDate="2013-05-02T13:50:17+05:30"> <fp:author title="Admin"/><fp:lastChangedBy title="Admin"/> <fp:textValue>Sample Text 2</fp:textValue> <fp:formattedTextValue>Sample Text 2</fp:formattedTextValue> <fp:xhtmlTextValue><div>Sample Text 2</div></fp:xhtmlTextValue> <fp:link href="https://fpserver.com:9443/fp/resources/workspaces/2/modules/1/elements/15/attributes/220/entries/1367482817756" rel="edit"/> </fp:textListEntry> </ns:textList> <ns:alias>ed2ad85f-5b87-4704-b384-e041888439c0</ns:alias> <ns:editLink href="https://fpserver.com:9443/fp/resources/workspaces/2/modules/1/elements/15/attributes/220"/> </ns:Text_List>
Supported parameters for the GET method
The following parameters can be used with the GET method:
view
Use this parameter to specify the view ID for retrieving the attributes that are in the view.
filter
This must be used with the view parameter. Use this parameter to pass the filter ID for retrieving attributes based on the filter criteria.
Type: Integer
For example, view=14&filter=1.
metadata
Set the metadata parameter to schema to retrieve the schema of the XML document for the element.
For example, metadata=schema.
includeHistoryOfAttribute, start, end
Set the includeHistoryOfAttribute parameter to true and specify the start and the end dates to retrieve the history of the attributes. The following formats are supported.
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 parameter to true for retrieving the time grid attribute sheets in a generic format. This can be used for reporting using Rational Insight.
Type: Boolean
Go up to
Attributes