[MarkLogic Dev General] Multiple Inputs for Custom XQuery Extension

Erik Hennum Erik.Hennum at marklogic.com
Fri Sep 15 13:52:41 PDT 2017


Hi, Bushan:

Yes, a resource service extension can take any number of parameters.

You prefix each parameter with rs: when constructing the equivalent HTTP URI parameter.   Please see:

    http://docs.marklogic.com/REST/GET/v1/resources/[name]


Hoping that helps,


Erik Hennum


________________________________________
From: general-bounces at developer.marklogic.com <general-bounces at developer.marklogic.com> on behalf of Bhushan Suryawanshi <bsuryawanshi at xenomorph.com>
Sent: Friday, September 15, 2017 9:28:35 AM
To: General at developer.marklogic.com
Subject: [MarkLogic Dev General] Multiple Inputs for Custom XQuery Extension

Hello Team,

Need some help here.

I am using MarkLogic 8.0, suing REST API.

I have created a custom XQuery extension which expecting a document as a Input and would give back the requested Node which is required.

Now I want to  add an another input parameter to the same extension is it possible?  and How multiple parameters would be used In a URI.

Below is the snippet of get function of my XQuery Resource extension.

Thanks in advance for the help.


[cid:image001.jpg at 01D32E1D.E6045810]


Thanks,
Bhushan Suryawanshi
Developer
t: +1-212-401-7894
www.xenomorph.com<http://www.xenomorph.com/?mail> | blog<http://xenomorph.typepad.com/?mail> | twitter<http://goo.gl/oaBWO> | linkedin<http://goo.gl/rdi8W>


This email is confidential and is intended only for the addressee. If you are not the intended recipient, please note that any dissemination, distribution or copying of this email is strictly prohibited. Any and all estimates, proposals, quotes and fees contained herein are for discussion purposes only and are not contractually binding unless executed in accordance with the standard practices of the Company. Attachments to this message have been virus checked but no guarantee can be made that any attachment is virus free. Please notify us immediately of any problem.





More information about the General mailing list