Webservice api clarification


#1

Hello,

I’ve been playing around with the webservice api and wanted to verify if there’s a way to control which fields are returned when querying data. For example, if I use the webservice api to retrieve the object-list with certain q parameters, I would get the following response:

image

As you can see, only the id, type and published params are being returned. If I wanted the ‘key’ param to be included in the data, how could I achieve this?

Any help would be appreciated.

Thank you.


#2

Hi,
the rest webservices do not support modifying the returned fields. Listings always return ID, type and published; getById requests always return full element.

We are working on graphQL support though (https://github.com/pimcore/pimcore/issues/3065) … with that it should be possible to define which fields to return…

BR
Christian