marklogic-community / Corona

Community REST API for MarkLogic
Other
37 stars 9 forks source link

Hooks to allow corona-admin users to specify a transformer to run on document inserts and/or fetches #75

Closed ryangrimm closed 12 years ago

ryangrimm commented 12 years ago

Allows code to always be executed right before a document will be inserted and right after a document is fetched. One use case for this is schema validation before insertion. Could do other things like manage last-updated timestamps. All kinds of goodies.

Tests are included. New /manage/hooks endpoint was created.

Along the way I also fixed a couple bugs in the error handler.