New BaseX setup

Monday, 21 May 2018 · 5 messages · last reply 23 May 2018
FB
France Baril21 May 2018 16:39 #
Hi, In one of my projects, we are trying to refactor our code so it uses a node.js client. We have extensive functions that do more than just get data in our .xqm. They were implemented around the http server and our web application was calling the REST functions we implemented using jquery AJAX request. All the examples we looked at in the documentation that don't use the http server pass entire queries as a string to the server. We were wondering if we can call functions from our .xqm modules directly (ex. namespace:do-this(param0, param1)) or if any request that uses functions from our .xqm files need to pass through the rest API. If we can call our .xqm functions more directly, could you point us to an example to help us understand how it would work? Thanks!
-- France Baril Architecte documentaire / Documentation architect france.baril at architextus.com
CG
Christian Grün21 May 2018 16:48 #
Hi France, RESTXQ is certainly what will cover all your requirements. Did you have a look at it? The DBA code, which is distributed along with BaseX, could be helpful to understand better what can be done with this API. Hope this helps, Christian France Baril <france.baril at architextus.com> schrieb am Mo., 21. Mai 2018, 16:40:
Quoted text · France Baril · 23 lines
> Hi, > > In one of my projects, we are trying to refactor our code so it uses a > node.js client. We have extensive functions that do more than just get data > in our .xqm. They were implemented around the http server and our web > application was calling the REST functions we implemented using jquery AJAX > request. All the examples we looked at in the documentation that don't use > the http server pass entire queries as a string to the server. > > We were wondering if we can call functions from our .xqm modules directly > (ex. namespace:do-this(param0, param1)) or if any request that uses > functions from our .xqm files need to pass through the rest API. > > If we can call our .xqm functions more directly, could you point us to an > example to help us understand how it would work? > > Thanks! > > -- > France Baril > Architecte documentaire / Documentation architect > france.baril at architextus.com >
AH
Alexander Holupirek21 May 2018 17:23 #
If you (and maybe others) are interested we could give a webinar about RESTXQ and the nuts and bolts of it. Cheers, Alex
Quoted text · Christian Grün · 26 lines
> On 21. May 2018, at 16:48, Christian Grün <christian.gruen at gmail.com> wrote: > > Hi France, > > RESTXQ is certainly what will cover all your requirements. Did you have a look at it? The DBA code, which is distributed along with BaseX, could be helpful to understand better what can be done with this API. > > Hope this helps, > Christian > > > > France Baril <france.baril at architextus.com> schrieb am Mo., 21. Mai 2018, 16:40: > Hi, > > In one of my projects, we are trying to refactor our code so it uses a node.js client. We have extensive functions that do more than just get data in our .xqm. They were implemented around the http server and our web application was calling the REST functions we implemented using jquery AJAX request. All the examples we looked at in the documentation that don't use the http server pass entire queries as a string to the server. > > We were wondering if we can call functions from our .xqm modules directly (ex. namespace:do-this(param0, param1)) or if any request that uses functions from our .xqm files need to pass through the rest API. > > If we can call our .xqm functions more directly, could you point us to an example to help us understand how it would work? > > Thanks! > > -- > France Baril > Architecte documentaire / Documentation architect > france.baril at architextus.com
BD
Bridger Dyson-Smith21 May 2018 19:35 #
Hi Alex,
Quoted text · Alexander Holupirek · 6 lines
On Mon, May 21, 2018 at 11:23 AM Alexander Holupirek <alex at holupirek.de> wrote: > If you (and maybe others) are interested we could give a webinar about > RESTXQ and the nuts and bolts of it. > > If something like this is possible, please count me as being Very
Interested.
Quoted text · Alexander Holupirek · 3 lines
> Cheers, > Alex >
Best, Bridger
Quoted text · Alexander Holupirek · 41 lines
> > > On 21. May 2018, at 16:48, Christian Grün <christian.gruen at gmail.com> > wrote: > > > > Hi France, > > > > RESTXQ is certainly what will cover all your requirements. Did you have > a look at it? The DBA code, which is distributed along with BaseX, could be > helpful to understand better what can be done with this API. > > > > Hope this helps, > > Christian > > > > > > > > France Baril <france.baril at architextus.com> schrieb am Mo., 21. Mai > 2018, 16:40: > > Hi, > > > > In one of my projects, we are trying to refactor our code so it uses a > node.js client. We have extensive functions that do more than just get data > in our .xqm. They were implemented around the http server and our web > application was calling the REST functions we implemented using jquery AJAX > request. All the examples we looked at in the documentation that don't use > the http server pass entire queries as a string to the server. > > > > We were wondering if we can call functions from our .xqm modules > directly (ex. namespace:do-this(param0, param1)) or if any request that > uses functions from our .xqm files need to pass through the rest API. > > > > If we can call our .xqm functions more directly, could you point us to > an example to help us understand how it would work? > > > > Thanks! > > > > -- > > France Baril > > Architecte documentaire / Documentation architect > > france.baril at architextus.com > >
FB
France Baril23 May 2018 13:53 #
I am using RESTXQ extensively, I was just wondering if it was still the best approach considering the presence of a new node.js layer in our application architecture. The answer is clear. Thanks!
Quoted text · Bridger Dyson-Smith · 64 lines
On Mon, May 21, 2018 at 5:39 PM, Bridger Dyson-Smith <bdysonsmith at gmail.com> wrote: > Hi Alex, > > > On Mon, May 21, 2018 at 11:23 AM Alexander Holupirek <alex at holupirek.de> > wrote: > >> If you (and maybe others) are interested we could give a webinar about >> RESTXQ and the nuts and bolts of it. >> >> If something like this is possible, please count me as being Very > Interested. > > >> Cheers, >> Alex >> > > Best, > Bridger > > >> >> > On 21. May 2018, at 16:48, Christian Grün <christian.gruen at gmail.com> >> wrote: >> > >> > Hi France, >> > >> > RESTXQ is certainly what will cover all your requirements. Did you have >> a look at it? The DBA code, which is distributed along with BaseX, could be >> helpful to understand better what can be done with this API. >> > >> > Hope this helps, >> > Christian >> > >> > >> > >> > France Baril <france.baril at architextus.com> schrieb am Mo., 21. Mai >> 2018, 16:40: >> > Hi, >> > >> > In one of my projects, we are trying to refactor our code so it uses a >> node.js client. We have extensive functions that do more than just get data >> in our .xqm. They were implemented around the http server and our web >> application was calling the REST functions we implemented using jquery AJAX >> request. All the examples we looked at in the documentation that don't use >> the http server pass entire queries as a string to the server. >> > >> > We were wondering if we can call functions from our .xqm modules >> directly (ex. namespace:do-this(param0, param1)) or if any request that >> uses functions from our .xqm files need to pass through the rest API. >> > >> > If we can call our .xqm functions more directly, could you point us to >> an example to help us understand how it would work? >> > >> > Thanks! >> > >> > -- >> > France Baril >> > Architecte documentaire / Documentation architect >> > france.baril at architextus.com >> >>
-- France Baril Architecte documentaire / Documentation architect france.baril at architextus.com

⚡Generated with XQuery