Forum Discussion
NathanV8
2 years agoFrequent Visitor
Iterating through API Calls
Hello Experts, I am in need of some assistance, let
// Define the base URL and initial page number
baseUrl = Tenant & Component_Base_API,
pageNumber = 1,
// Define the A...
NathanV8
2 years agoFrequent Visitor
Hello Anonymous
The initial call is returning as below
{
"Page": <Integer>,
"Next": <Uri>,
"Results": <Array of Component Model>
}
The component model referenced above is below if it matters
[
{
"Id": <Guid>,
"Name": <String>,
"SnippetTag": <String>,
"VesselComponentId": <Guid>,
"ParentComponentId": <Guid>,
"AssetId": <Guid>,
"Active": <Boolean>,
"Deactivated": <DateTime>,
"ComponentTypeId": <Guid>,
"ComponentTypeName": <String>,
"EssentialSystem": <Boolean>,
"MakeId": <Guid>,
"MakeName": <String>,
"ModelId": <Guid>,
"ModelName": <String>,
"Modified": <DateTime>,
"SerialNumber": <String>,
"PartNumber": <String>,
"ReceivePropagatedReadings": <Boolean>,
"UserDefined": User Defined Data Model (see User Defined Fields section for more details)
},
....
]