How to Create Custom API V8 in Suite CRM 8
Trying to create a custom API in SuiteCRM 8 using V8, here I am posting my solution in answer hope this will help the developer community.
after investing a few days finally able to figure out the solution.
Regards Sanjeev
Creating a custom API in SuiteCRM 8 involves a few steps. Here's a high-level overview of the process:
Define the API endpoint:
custom/application/Ext/Api/V8/.Create a new Custom API controller:
public/legacy/custom/application/Ext/Api/V8/Controllerdirectory.DatesController.php.Register the API route:
public/legacy/custom/application/Ext/Api/V8/Configdirectory.routes.php.**Extend Controller **
In the SuiteCRM 8 source code, navigate to the public/legacy/custom/application/Ext/Api/V8/ and create a new file controllers.php
Test your custom API:
Start your local development server. Make API requests to the endpoint you defined, e.g., http://localhost/api/v8/custom/dates. Verify that the API is functioning as expected and returning the desired responses.
Make it work add into composer file inside