We are in the process of creating a monitoring plugin which will make restful calls to MarkLogic to retrieve status information. One of the first things we need to know is which version of MarkLogic we are connnecting to so that we know whether to user v1 or v2 of the rest api.
Is there a way to retrieve that information first?
MarkLogic's REST API allows you to create, read, update, and delete documents (CRUD), as well as search documents and perform analytics on the values they contain.
REST API client applications interact with MarkLogic Server through a REST API instance, a specially configured HTTP App Server. Each REST API instance is intended to service a single content database and client application.
You can also use the REST Client API in conjunction with the REST Management API on port 8002. The instance on port 8000 is convenient for getting started, but you will usually create a dedicated instance for production purposes.
Which of the following is NOT a way to communicate with MarkLogic? "Directories are hierarchical in structure (like a filesystem directory structure). Collections do not have this requirement.
There is version information in the host-status output. You would first need to list all the hosts with /manage/LATEST/hosts
and select one to query, for example /manage/LATEST/hosts/localhost?view=status
. Then look under status-properties
and version
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With