mglaman / commerce_cart_api

Original sandbox WIP for the module now on Drupal.org. Do not fork. Patches accepted on Drupal.org
https://www.drupal.org/project/commerce_cart_api
9 stars 1 forks source link

Flatten field values #4

Closed mglaman closed 6 years ago

mglaman commented 6 years ago

One of the most annoying things is item.quantity[0].value. JSON API is 💯 because of its serializers. But they don't work well when you have different bundles in a route.

It'd be great to provide simpler fields for consumers.