I want to create custom REST endpoint in MarkLogic, like "http://localhost:port/v1/resources/my_custom_endpoint"
And I am doing it via curl command in my local. But I want to integrate this with ml-gradle to automate this process as first install activity.
Please let me know how to do it via ml-gradle.
As explained in this other answer, you need to put your custom REST endpoint module in your project
/src/main/ml-modules/servicesdirectory.You can see an example of how to configure a custom REST endpoint in the ml-gradle sample project in which it explains: