cicero-server

0.2.46 • Public • Published

Cicero Server

Exposes the Cicero Engine as a RESTful service, useful for testing. Templates are loaded from a the root CICERO_DIR. Clauses may be instantiated from JSON or TXT files loaded from CICERO_DIR.

Installation

npm install -g cicero-server --save

Run

export CICERO_DIR=<cicero-template-dir>
cicero-server
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' http://localhost:6001/execute/acceptance-of-delivery/sample.txt -d '{"$class" : "org.accordproject.acceptanceofdelivery.InspectDeliverable","deliverableReceivedAt" : "2017-12-03","inspectionPassed" : "false"}'

Package Sidebar

Install

npm i cicero-server

Weekly Downloads

0

Version

0.2.46

License

Apache-2.0

Unpacked Size

22.6 kB

Total Files

9

Last publish

Collaborators

  • dselman