We will take a look at this and provide you with a solution.
Thank you. I hope to receive a detailed guide on how to extend the API.
For your info, I've also tried to duplicate app/Tygh/Api/Entities/Auth.php to a new API name in the same folder. Then, I make the usual REST request to the new API name, I get the same error as well, entity not found.
Are you sure that the module is installed and activated? Strange question, but such things happen
I don't have a module, because I just want to extend the API to have more functionalities. Or I must have a module? The documentation didn't mention anything about having a module. Please advise.
I don't have a module, because I just want to extend the API to have more functionalities. Or I must have a module? The documentation didn't mention anything about having a module. Please advise.
Sure, new module is necessary for this feature. At least use the default My changes module
The article has also been updated to answer some of your questions. I hope you will find it more useful now. The part about the add-on was probably omitted because the article itself was in the Add-on Development section of the documentation.
If that's what caused the confusion, I apologize for the inconvenience.
P.S. In the Russian version of CS-Cart add-ons are called "modules". I just thought I should point that out to avoid a possible misunderstanding.
How do I extend the API with a custom subfolder like abc.com/api/custom/products ?
Also is it possible to extend the base class to just modify part of the code needed ?
I've tried to copy the code from Tygh\Api\v20\Products.php to use in the add-on class Products2.php and change the class name to Product2 but getting the following errors
Cannot declare class Tygh\Api\Entities\v20\Products2, because the name is already in use in /app/addons/api_ext/Tygh/Api/Entities/Products2.php on line 0