Hi Andy,
great work. I've tried it, and everything went as expected. With a simple factbook-db I only got one error. If you are loading the first-data as factbook-db as .zip-file, you'll get the following error when loading: https://xxx-xxx/dba/databases
Problem accessing /dba/databases. Reason:
Stopped at /var/lib/openshift/56fd326b89f5cf2ec200002e/app-root/data/basex/webapp/dba/modules/html.xqm, 282/70:
[FORG0001] Wrong xs:dateTime format: 'factbook' (try e.g. '2000-12-31T23:59:59.999').
Stack Trace:
- /var/lib/openshift/56fd326b89f5cf2ec200002e/app-root/data/basex/webapp/dba/databases/databases.xqm, 79/30
- /var/lib/openshift/56fd326b89f5cf2ec200002e/app-root/data/basex/webapp/dba/databases/databases.xqm, 30/10
If you are loading the factbook-db unzipped, everything works.
That's also true with my own db. I also copied my xq-files via repo, but I don't know, how to access them via REST-Interface. On my local machine I'm able to cUrl via
curl -i "http://localhost:8984/rest?run=xqs/list_ba_flyer.xq"
With the remote Server I'll get
"Resource "xqs/list_ba_flyer.xq" not found."
with corresponding
curl -i "https://xxx:xxx@xxx-xxx.rhcloud.com/rest?run=xqs/list_ba_flyer.xq"
curl -i "https://xxx-xxx.rhcloud.com/rest?run=xqs/list_ba_flyer.xq"
On the Server the file is copied to /var/lib/openshift/xxx/app-root/data/basex/repo/xqs/list_ba_flyer.xq
How can I run the Query-File via the REST-Interface?
Thanks for your advice and again for your great work!
Best,
Günter
> Am 31.03.2016 um 00:29 schrieb Andy Bunce <bunce.andy@gmail.com>:
>
> Hi,
> A new version is available at https://github.com/Quodatum/openshift-basex-quick-start.
>
> New features:
> • Enable REST and WebDAV
> • support for setting initial users
> • support for setting initial data
> • Use Java 8
> Thanks to Michael Sperberg-McQueen and Günter Dunz-Wolff for helpful comments on the previous version.
>
> /Andy
>
>
>