Jump to content

Issue information

  • #004200

  • Fixed in next version


Issue Confirmations

  • Yes (0)No (0)
Photo

API error ?

Posted by soft-solid on 18 June 2013 - 08:34 PM

What is this ? Why REST_RESOURCE_PARAM_NAME equal '_d' ?

const REST_RESOURCE_PARAM_NAME = '_d';

should be REST_RESOURCE_PARAM_NAME = 'q';

Regrads
SoftSolid
Robert Diak.

"_d" is some kind alias for the "dispatch"
We can not use "q" because it used in function fn_get_products as a parameter, thus in case we want to find all products with name "Nike" we should use "&q=Nike"
So in dev style the record would look like:
api.php?_d=products&pname=Y&q=Nike


changed status to: Working As Designed

Hello.

I this situation API not working property.
Also update category by API made error.

SoftSolid


changed status to: Awaiting Feedback

Can you please describe what do you mean under "API not working property."
What error do you get on updating Category?


Hello.
During update category by API a have an error.

Fatal error: Uncaught exception 'Exception' with message 'Message from CS-Cart API: 404 Not Found: The Category not found' in /home/scalak/clients/ebielizna/ebc4_rc2/CSCartApi.php:133 Stack trace: #0 /home/scalak/clients/ebielizna/ebc4_rc2/CSCartApi.php(111): CSCartApi->parseResult('{"message":"404...') #1 /home/scalak/clients/ebielizna/ebc4_rc2/CSCartApi.php(144): CSCartApi->makeRequest('categories/1', 'PUT', Array) #2 /home/scalak/clients/ebielizna/ebc4_rc2/example.php(114): CSCartApi->update('categories/1', Array)


changed status to: Confirmed

changed status to: Fixed in next version