REST API api/entities/<entityname> response body

When consuming 1IM REST API endpoint  /api/entities/<entityname> ( being entityname a ReadOnly view)

on GET request i would like to exclude the ootb attributes marked in brown from the JSON response and return only the attributes within "values" object

{
"uri": "/AppServer/api/entity/CCC_RO_Person/02327eae-c3e0-454d-adf1-fcedddadcb6d",
"display": "02327eae-c3e0-454d-adf1-fcedddadcb6d",
"longDisplay": "02327eae-c3e0-454d-adf1-fcedddadcb6d",
"values": {
        "CentralAccount": "DEXXXX00",
        "DefaultEmailAddress": "",
        "InternalName": "Tests, user",
        "Phone": "+49 (40) 5269-1022",
        "PhoneMobile": "+49 (175) 7924667",
        "UID_Person": "02327eae-c3e0-454d-adf1-fcedddadcb6d"
   }
}

Parents Reply
  • Starting with 8.2 you can set the query parameter noUrls=true

    Combined with the loadtype=Slim you can get something like this.

    [
        {
            "state": 1,
            "values": {
                "CentralAccount": "ADMINIT",
                "DefaultEmailAddress": "ADMINIT@iam.local",
                "InternalName": "Testapoulos, Admini",
                "Phone": "+44555 555 555",
                "PhoneMobile": "+44555 555 555",
                "UID_Person": "01b47abe-e5db-46e3-a2ff-dceaac7cfd2c"
            }
        }
    ]

Children