Closed shafiqhossain closed 7 years ago
I would use the Services Entity API module: https://www.drupal.org/project/services_entity It creates an "entity_field_collection_item" resource with CRUD operations.
By the way, I agree with this comment: https://www.drupal.org/node/2196685#comment-10285879
You can certainly code services to pull the field collection details, but that's not how Drupal services module works. Services expects every entity to be it's own request. If you'd like services to be a bit more efficient by combining end points ahead of time, it can be done, but it requires either views and services views or a fair amount of custom code.
Hi @shafiqhossain I'm closing this issue now but I also created a wiki page with a short example: https://github.com/titobrasolin/Drupal7.Services/wiki/How-to-create-a-new-node-with-a-field-collection-field-in-it
A field collection is created in Drupal site and the dump is seen as follows:
How we can add/update the fields in field collection and retrieve field collection entity ?
thanks