question

Upvotes
Accepted
3 0 1 2

How to inspect the data type

How to inspect the elements(structure) of Odata data type?

For Example :

How to know the structure(fields, allowed values) of the json message with @odata.type : "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.HistoricalReferenceExtractionRequest

Thanks.

tick-history-rest-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvote
Accepted
38.1k 71 35 53

There are two options:

1. Access Metadata links at https://hosted.datascopeapi.reuters.com/RestApi/v1. HistoricalReferenceExtractionRequest is defined in https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/$metadata.

<ComplexType Name="HistoricalReferenceExtractionRequest" BaseType="ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.ExtractionRequestBase">
  <Property Name="ContentFieldNames" Type="Collection(Edm.String)"/>
  <Property Name="IdentifierList" Type="ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.InstrumentIdentifierListBase"/>
  <Property Name="Condition" Type="ThomsonReuters.Dss.Api.Extractions.ReportTemplates.HistoricalReferenceCondition"/>
</ComplexType>

2. Use API Reference Tree from DSS Help page at https://hosted.datascopeapi.reuters.com/RestApi.Help/Home/RestApiProgrammingSdk.


historicalref.png (87.1 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea