It seems that the farm_asset and log entity types are not accessible via /farm_asset.json and /log.json paths. It should show all the entities in JSON format. Likewise, the *.xml variants also don't work. Notably they do work for core Drupal entity types, however, so perhaps it is just a missing configuration.

Comments

m.stenta created an issue. See original summary.

m.stenta’s picture

Also notably: individual logs and assets work.

/log/1.json and /farm_asset/1.json both work fine.

m.stenta’s picture

Status: Active » Fixed

I traced this to the fact that both the farm_asset_access() and log_access() functions we based off of the node_access() function, which denies access if no entity is passed in for access checking. However, the entity module overrides node's access callback with it's own, that does provide that functionality, and delegates to node_access() for everything else.

I am pushing two slight tweaks to the farm_asset and log modules to fix this.

m.stenta’s picture