The index resources only return the fields (column names) from that particular entity type's table. Is it possible to get the index resources to include entity fields as well?

For example, the comment index resource by default just returns all the fields/columns from the comment table. Is it possible to include the comment_body field in the results?

I'm aware of the services_views and views_datasource modules and how they can be used to get custom fields. I'm just wondering if there is a particular index query that can be passed to the index resource, or if there are any services hooks that can be used to include an entity's fields with the index resource results.

Comments

kylebrowning’s picture

Status: Active » Closed (works as designed)

I do believe you can run an alter on the response but theres nothing built in here that allows this to happen.

Very happy to accept a patch though.

tyler.frankenstein’s picture

Assigned: Unassigned » tyler.frankenstein
Category: Support request » Feature request
Status: Closed (works as designed) » Needs work

I'm going to revisit this.

tyler.frankenstein’s picture

tyler.frankenstein’s picture

joelpittet’s picture

Status: Needs work » Active

Moving to active as there is no patch yet.