From: Joern T. <joe...@gm...> - 2021-03-16 12:02:35
|
Eduard, there a new child in town - look here: https://github.com/eeditiones/roaster This implements OpenAPI for eXist-db and is a very slick approach to quickly develop APIs and furthermore do so in an established standard. Best, Joern On Tue, Mar 16, 2021 at 10:24 AM Eduard Drenth <ed...@fr...> wrote: > Thanks Adam, you bought me some time :-) > > -----Original Message----- > *From*: Adam Retter <ad...@ex... > <Adam%20Retter%20%3c...@ex...%3e>> > *To*: Eduard Drenth <ed...@fr... > <Eduard%20Drenth%20%3ce...@fr...%3e>> > *Cc*: exi...@li... <Exi...@li... > <%22e...@li...%22%20%3cE...@li...%3e> > > > *Subject*: Re: [Exist-open] exist interfaces > *Date*: Tue, 16 Mar 2021 07:50:42 +0100 > > Hi Eduard, > > I would suggest to stick with plain HTTP and build an API for yourself in > XQuery that returns what you need (JSON if you like). > > To do this you have a number of choices but I think RESTXQ is a great fit > here. > > For FusionStudio we built our API in XQuery using RestXQ and all > communication back and forth is JSON (apart from retrieving/storing non-XML > docs). If you want to see how we did it, the source code and links to the > swagger API docs are available here - > https://www.github.com/evolvedbinary/fusio-studio-api > > > > On Mon, 15 Mar 2021, 11:17 Eduard Drenth, <ed...@fr...> > wrote: > > Dear all, > > For our language resources I am developing (ejb/cdi) services behind a > graphql interface. Data comes from several backends. Some of them already > have ejb/cdi/jpa code and setup which I can easily reuse. > > For exist I wonder how to connect to remote exist instances in an > efficient, future proof way. I already have working queries that output > json and can be called over https. > > As far as I can see, these are my options: > > 1) https calls => overhead, but already there, optimized and perhaps fast > enough > 2) http://exist-db.org/exist/apps/doc/devguide_xmlrpc => expensive? old > technology? maintained? json results supported? > 3) http://exist-db.org/exist/apps/doc/devguide_xmldb.xml => promoted as > the preferred way, sits on top of xmlrpc? json results supported? > 4) http://xqj.net/: feel like the way to go for me, but is it alive? > > Perhaps xmldb api is my best option, any thoughts or experiences on this > subject would be welcome... > > Regards, Eduard > > > -- > > > Eduard Drenth, Software Architekt > > ed...@fr... > > Doelestrjitte 8 > 8911 DX Ljouwert > +31 58 234 30 47 > +31 62 094 34 28 (privé) > > skype: eduarddrenth > https://github.com/eduarddrenth > frisian.eu > gpg: https://pgp.surfnet.nl/pks/lookup?search=eduarddrenth > > > Op freed bin ik thús/wurkje ik minder > > > > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > > -- > > Eduard Drenth, Software Architekt > > ed...@fr... > > Doelestrjitte 8 > 8911 DX Ljouwert > +31 58 234 30 47 > +31 62 094 34 28 (privé) > > skype: eduarddrenth > https://github.com/eduarddrenth > frisian.eu > gpg: https://pgp.surfnet.nl/pks/lookup?search=eduarddrenth > > > Op freed bin ik thús/wurkje ik minder > > > > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > |