I have installed Drupal commerce on Druapl 8 site. I need to expose commerce features via an API. when I try to enable Commerce API module I am getting following error.
TypeError: strpos() expects parameter 1 to be string, int given in strpos() (line 33 of /var/www/html/web/modules/contrib/commerce_api/src/ParamConverter/EntityUuidConverter.php)
I have updated
modules/contrib/commerce_api/src/ParamConverter/EntityUuidConverter.php
file as follows.$name
tostrval($name)
Commerce API got enabled.