So I'm trying to add JSON-API module integration to our own module. There are a few features not in the JSON API now that we have independent .mvc scripts do, that don't work with database encryption. The sample gave enough information that I was able to get the module function recognized as valid when making a API call, but neither of the two examples provided in the integration guide pass information to the function. I've tried a few things to pass a part number to the function (I'm looking to return the sum of the basket inventories for a single product), but have not had much luck. And what I thought might allow me to just do some simple things like return the input value have so far failed as well.
Is anyone passing anything to a module API integration and willing to share an example? I have so far added the json_api feature to the l.module:features of the Module_Description function, have our function included in the Module_JSON_API function, and our own function written. But all I'm getting for a response from calling our function is an empty string. I'm passing l.module to it, but clearly that isn't the right parameter, or I need to add others. Ultimately, what I'm hoping to pass at the end of the JSON call is "Module_Function":"GetBaskInventory","Product_Code ":"SampleProduct".
Is anyone passing anything to a module API integration and willing to share an example? I have so far added the json_api feature to the l.module:features of the Module_Description function, have our function included in the Module_JSON_API function, and our own function written. But all I'm getting for a response from calling our function is an empty string. I'm passing l.module to it, but clearly that isn't the right parameter, or I need to add others. Ultimately, what I'm hoping to pass at the end of the JSON call is "Module_Function":"GetBaskInventory","Product_Code ":"SampleProduct".
Comment