REST endpoint registration and bootstrap(Creating range-index) using U Deploy

77 Views Asked by At

I have my code in Git repository. I am using UDeploy to deploy my code into MarkLogic environment. I can able to move all my modules successfully but facing two problems 1. Creating New indexes 2. REST endpoint creation Please let me know if there is anyway to implement these two

For creating indexes, I have tried to do it using API functions(admin:database-range-element-index()) and I have successful in that part. But is there any way to do it from UDeploy or DevOps. For register REST endpoint I couldn't able to find anyway to try.

2

There are 2 best solutions below

0
Ganesh On

Have you looked at MarkLogic's REST Management APIs - https://docs.marklogic.com/REST/management. In particular, see if https://docs.marklogic.com/REST/POST/manage/v2/databases will help you create indexes via REST management APIs.

1
Dave Cassel On

The most common way to deploy MarkLogic code & configuration is ml-gradle, a plugin to the widely used gradle tool. ml-gradle uses MarkLogic's Management API, mentioned by Ganesh, and is scriptable.