5 Replies Latest reply on Jun 1, 2016 9:44 AM by ttielebein RSS
    sv Apprentice

    REST API: How to get the multiple entries of a property while firing the URL?

    Hi,

    I want to get the multiple entries of a properties by passing the URL.

    For eg: When i pass the URL " ge2-****.cloud.thingworx.com/Thingworx/Things/Trucks/Properties?method=get&Accept=application/json "

     

    I should get the following result:

     

    {"iot":[                                      // When i fired, Its showing "rows", I want it to be "iot"

    {

        "ID": "1",

        "TruckID": "T101",

        "PalletID": "P101",

        "TransitTime": "10:02:01",

        "CurrentLoc": "Kochi",

        "Health": "Good",

        "Source": "Trivandrum",

        "Destination": "Mumbai",

         "Shipper": "EY",

        "Remarks": "Asset valuable",

         "Action": "Action"

    },

    {

        "ID": "2",

        "TruckID": "T101",

        "PalletID": "P102",

        "TransitTime": "10:02:01",

        "CurrentLoc": "Kochi",

        "Health": "Good",

        "Source": "Trivandrum",

        "Destination": "Mumbai",

         "Shipper": "EY",

        "Remarks": "Asset valuable",

         "Action": "Action"

    },

    ]}