Return additional fields in object-list API

I am using the following web service call to retrieve objects:

/webservice/rest/object-list?objectClass=product

This gives me a response like:

  {
"success": true,
"total": 3,
"data": [
    {
        "id": 52,
        "type": "object",
        "published": false
    },
    {
        "id": 53,
        "type": "variant",
        "published": false
    },
    {
        "id": 54,
        "type": "object",
        "published": false
    }
]
}

Ca I return additional fields in this response, by changing the API request, or would this need customisation? I’d like to return the “name” property also as this would save me further requests whilst performing some processing

Many thanks,
Jon

Hi,
no that is not possible.
But have a look at the datahub project (https://github.com/pimcore/data-hub) - this creates a graphql interface for Pimcore which allows you to do exactly that.

BR
Christian

Thank you for the response, I’ll take a look