Skip to content

a lightweight JS client for the MarkLogic REST API

License

Notifications You must be signed in to change notification settings

joemfb/ml-rest.js

Repository files navigation

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.js

By 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.

About

a lightweight JS client for the MarkLogic REST API

Resources

License

Stars

Watchers

Forks

Packages

No packages published