Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Serverside Javascript to init extension and transform #165

Closed
ltnd opened this issue Mar 2, 2017 · 0 comments
Closed

Adding Serverside Javascript to init extension and transform #165

ltnd opened this issue Mar 2, 2017 · 0 comments
Milestone

Comments

@ltnd
Copy link

ltnd commented Mar 2, 2017

Could be good to be able to initialize files for javascript on extension and transform :
mlCreateResource : https://docs.marklogic.com/guide/rest-dev/extensions#id_15531

function get(context, params) {
  // return zero or more document nodes
};

function post(context, params, input) {
  // return zero or more document nodes
};

function put(context, params, input) {
  // return at most one document node
};
function deleteFunction(context, params) {
  // return at most one document node
};
exports.GET = get;
exports.POST = post;
exports.PUT = put;
exports.DELETE = deleteFunction;

mlCreateTransform : http://docs.marklogic.com/guide/node-dev/extensions#id_27983

function transform(context, params, content)
{
//Must return the result of the transform 
};
exports.transform = transform;
@rjrudin rjrudin added this to the 2.6.0 milestone Mar 3, 2017
@rjrudin rjrudin closed this as completed Mar 3, 2017
rjrudin added a commit that referenced this issue Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants