1.0.0-2 • Published 10 years ago
ml-rest.js v1.0.0-2
ml-rest.js
a lightweight JS client for the MarkLogic REST API, built on modern browser APIs fetch and URLSearchParams.
install from npm
npm install ml-rest.jsBy default, any missing dependencies are polyfilled for node and the browser:
var MLRest = require('ml-rest.js')
var client = MLRest.create()Alternately, rest.js (a UMD module) can be used directly. It exports a factory, optionally taking dependencies, and returns the client constructor/factory:
<script src="path/to/rest.js"></script>
<script>
var MLRest = window.mlRestFactory()
var client = MLRest.create()
</script>See API docs for details.
This module is pre-release, and subject to change.