mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
A Spree::Product represented as product group is not directly associated to an enterprise. In theory, it could have multiple enterprises through its variants. So we better don't include the id in the URL. ``` -http://test.host/api/dfc/enterprises/10000/product_groups/90000 +http://test.host/api/dfc/product_groups/90000 ``` This makes it simpler as well.