11xquery version "3.1" ;
22
3- module namespace api = "http://evolvedbinary .com/ns/pebble /api" ;
3+ module namespace api = "http://fusiondb .com/studio /api" ;
44
55declare namespace err = "http://www.w3.org/2005/xqt-errors" ;
66declare namespace rest = "http://exquery.org/ns/restxq" ;
77declare namespace output = "http://www.w3.org/2010/xslt-xquery-serialization" ;
88declare namespace http = "http://expath.org/ns/http-client" ;
99import module namespace sm = "http://exist-db.org/xquery/securitymanager" ;
1010
11- import module namespace config = "http://evolvedbinary .com/ns/pebble /api/config" at "modules/config.xqm" ;
12- import module namespace col = "http://evolvedbinary .com/ns/pebble /api/collection" at "modules/collection.xqm" ;
13- import module namespace doc = "http://evolvedbinary .com/ns/pebble /api/document" at "modules/document.xqm" ;
14- import module namespace exp = "http://evolvedbinary .com/ns/pebble /api/explorer" at "modules/explorer.xqm" ;
11+ import module namespace config = "http://fusiondb .com/ns/studio /api/config" at "modules/config.xqm" ;
12+ import module namespace col = "http://fusiondb .com/ns/studio /api/collection" at "modules/collection.xqm" ;
13+ import module namespace doc = "http://fusiondb .com/ns/studio /api/document" at "modules/document.xqm" ;
14+ import module namespace exp = "http://fusiondb .com/ns/studio /api/explorer" at "modules/explorer.xqm" ;
1515import module namespace hsc = "https://tools.ietf.org/html/rfc2616#section-10" at "modules/http-status-codes.xqm" ;
16- import module namespace idx = "http://evolvedbinary .com/ns/pebble /api/index" at "modules/index.xqm" ;
16+ import module namespace idx = "http://fusiondb .com/ns/studio /api/index" at "modules/index.xqm" ;
1717import module namespace jx = "http://joewiz.org/ns/xquery/json-xml" at "modules/json-xml.xqm" ;
18- import module namespace mul = "http://evolvedbinary .com/ns/pebble /api/multipart" at "modules/multipart.xqm" ;
19- import module namespace perr = "http://evolvedbinary .com/ns/pebble /api/error" at "modules/error.xqm" ;
20- import module namespace prxq = "http://evolvedbinary .com/ns/pebble /api/restxq" at "modules/restxq.xqm" ;
21- import module namespace qry = "http://evolvedbinary .com/ns/pebble /api/query" at "modules/query.xqm" ;
22- import module namespace sec = "http://evolvedbinary .com/ns/pebble /api/security" at "modules/security.xqm" ;
23- import module namespace ut = "http://evolvedbinary .com/ns/pebble /api/util" at "modules/util.xqm" ;
18+ import module namespace mul = "http://fusiondb .com/ns/studio /api/multipart" at "modules/multipart.xqm" ;
19+ import module namespace perr = "http://fusiondb .com/ns/studio /api/error" at "modules/error.xqm" ;
20+ import module namespace prxq = "http://fusiondb .com/ns/studio /api/restxq" at "modules/restxq.xqm" ;
21+ import module namespace qry = "http://fusiondb .com/ns/studio /api/query" at "modules/query.xqm" ;
22+ import module namespace sec = "http://fusiondb .com/ns/studio /api/security" at "modules/security.xqm" ;
23+ import module namespace ut = "http://fusiondb .com/ns/studio /api/util" at "modules/util.xqm" ;
2424
2525
2626(: TODO(AR) -
@@ -33,7 +33,7 @@ import module namespace ut = "http://evolvedbinary.com/ns/pebble/api/util" at "m
3333
3434declare
3535 %rest:GET
36- %rest:path("/pebble /version" )
36+ %rest:path("/fusiondb /version" )
3737 %rest:produces("application/json" )
3838 %output:method("json" )
3939function api:version () {
@@ -46,7 +46,7 @@ function api:version() {
4646
4747declare
4848 %rest:GET
49- %rest:path("/pebble /explorer" )
49+ %rest:path("/fusiondb /explorer" )
5050 %rest:query-param("uri" , "{$uri}" , "/" )
5151 %rest:produces("application/json" )
5252 %output:method("json" )
@@ -58,7 +58,7 @@ function api:explorer($uri) {
5858
5959declare
6060 %rest:GET
61- %rest:path("/pebble /document" )
61+ %rest:path("/fusiondb /document" )
6262 %rest:query-param("uri" , "{$uri}" )
6363function api:get-document ($uri) {
6464 api:with-valid-uri-ex ($uri, function ($uri) {
@@ -87,7 +87,7 @@ function api:get-document($uri) {
8787
8888declare
8989 %rest:PUT("{$body}" )
90- %rest:path("/pebble /document" )
90+ %rest:path("/fusiondb /document" )
9191 %rest:header-param("Content-Type" , "{$media-type}" , "application/octet-stream" )
9292 %rest:query-param("uri" , "{$uri}" )
9393 %rest:header-param("x-pebble-copy-source" , "{$copy-source}" )
@@ -189,7 +189,7 @@ function api:put-document($uri, $copy-source, $move-source, $media-type, $body)
189189
190190declare
191191 %rest:DELETE
192- %rest:path("/pebble /document" )
192+ %rest:path("/fusiondb /document" )
193193 %rest:query-param("uri" , "{$uri}" )
194194function api:delete-document ($uri) {
195195 api:with-valid-uri-ex ($uri, function ($uri) {
@@ -215,7 +215,7 @@ function api:delete-document($uri) {
215215
216216declare
217217 %rest:PUT
218- %rest:path("/pebble /collection" )
218+ %rest:path("/fusiondb /collection" )
219219 %rest:query-param("uri" , "{$uri}" )
220220 %rest:header-param("x-pebble-copy-source" , "{$copy-source}" )
221221 %rest:header-param("x-pebble-move-source" , "{$move-source}" )
@@ -279,7 +279,7 @@ function api:put-collection($uri, $copy-source, $move-source) {
279279
280280declare
281281 %rest:DELETE
282- %rest:path("/pebble /collection" )
282+ %rest:path("/fusiondb /collection" )
283283 %rest:query-param("uri" , "{$uri}" )
284284function api:delete-collection ($uri) {
285285 api:with-valid-uri-ex ($uri, function ($uri) {
@@ -304,7 +304,7 @@ function api:delete-collection($uri) {
304304
305305declare
306306 %rest:GET
307- %rest:path("/pebble /user" )
307+ %rest:path("/fusiondb /user" )
308308 %rest:produces("application/json" )
309309 %output:method("json" )
310310function api:list-users () {
@@ -325,7 +325,7 @@ function api:list-users() {
325325
326326declare
327327 %rest:GET
328- %rest:path("/pebble /user/{$username}" )
328+ %rest:path("/fusiondb /user/{$username}" )
329329 %rest:produces("application/json" )
330330 %output:method("json" )
331331function api:get-user ($username) {
@@ -356,7 +356,7 @@ function api:get-user($username) {
356356
357357declare
358358 %rest:PUT("{$body}" )
359- %rest:path("/pebble /user/{$username}" )
359+ %rest:path("/fusiondb /user/{$username}" )
360360 %rest:consumes("application/json" )
361361 %rest:produces("application/json" )
362362 %output:method("json" )
@@ -393,7 +393,7 @@ function api:put-user($username, $body) {
393393
394394declare
395395 %rest:DELETE
396- %rest:path("/pebble /user/{$username}" )
396+ %rest:path("/fusiondb /user/{$username}" )
397397 %rest:produces("application/json" )
398398 %output:method("json" )
399399function api:delete-user ($username) {
@@ -426,7 +426,7 @@ function api:delete-user($username) {
426426
427427declare
428428 %rest:GET
429- %rest:path("/pebble /group" )
429+ %rest:path("/fusiondb /group" )
430430 %rest:produces("application/json" )
431431 %output:method("json" )
432432function api:list-groups () {
@@ -447,7 +447,7 @@ function api:list-groups() {
447447
448448declare
449449 %rest:GET
450- %rest:path("/pebble /group/{$groupname}" )
450+ %rest:path("/fusiondb /group/{$groupname}" )
451451 %rest:produces("application/json" )
452452 %output:method("json" )
453453function api:get-group ($groupname) {
@@ -478,7 +478,7 @@ function api:get-group($groupname) {
478478
479479declare
480480 %rest:PUT("{$body}" )
481- %rest:path("/pebble /group/{$groupname}" )
481+ %rest:path("/fusiondb /group/{$groupname}" )
482482 %rest:consumes("application/json" )
483483 %rest:produces("application/json" )
484484 %output:method("json" )
@@ -515,7 +515,7 @@ function api:put-group($groupname, $body) {
515515
516516declare
517517 %rest:DELETE
518- %rest:path("/pebble /group/{$groupname}" )
518+ %rest:path("/fusiondb /group/{$groupname}" )
519519 %rest:produces("application/json" )
520520 %output:method("json" )
521521function api:delete-group ($groupname) {
@@ -548,7 +548,7 @@ function api:delete-group($groupname) {
548548
549549declare
550550 %rest:GET
551- %rest:path("/pebble /index" )
551+ %rest:path("/fusiondb /index" )
552552 %rest:query-param("uri" , "{$uri}" )
553553 %rest:produces("application/json" )
554554 %output:method("json" )
@@ -575,7 +575,7 @@ function api:get-index($uri) {
575575
576576declare
577577 %rest:GET
578- %rest:path("/pebble /restxq" )
578+ %rest:path("/fusiondb /restxq" )
579579 %rest:produces("application/json" )
580580 %output:method("json" )
581581function api:restxq () {
@@ -587,7 +587,7 @@ function api:restxq() {
587587
588588declare
589589 %rest:POST("{$body}" )
590- %rest:path("/pebble /query" )
590+ %rest:path("/fusiondb /query" )
591591 %rest:header-param("Range" , "{$range-header}" )
592592 %rest:consumes("application/json" )
593593 %rest:produces("application/json" )
0 commit comments