We should add JSON:API support. This allows more flexibility and enables the ability to handle additional fields on order items. For instance, updating any order item field is now allowed if you extend the field access. This would solve β¨ Allow extended fields data for order items when creating cart. Needs review and #3079779: Add ability to set unit price in add to cart ajax call β .
It also removes the need to write a custom API spec. It also enables Open API support.
This has been a WIP over at https://github.com/mglaman/commerce_cart_api/tree/jsonapi_resources.
It uses the jsonapi_resources module and requires Drupal 8.8.
Closed: won't fix
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.