Skip to content

Commit 9ffb234

Browse files
committed
Rename paths and namespaces for FusionDB
1 parent c593e16 commit 9ffb234

File tree

12 files changed

+50
-50
lines changed

12 files changed

+50
-50
lines changed

src/main/xar-resources/api.xqm

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
xquery version "3.1";
22

3-
module namespace api = "http://evolvedbinary.com/ns/pebble/api";
3+
module namespace api = "http://fusiondb.com/studio/api";
44

55
declare namespace err = "http://www.w3.org/2005/xqt-errors";
66
declare namespace rest = "http://exquery.org/ns/restxq";
77
declare namespace output = "http://www.w3.org/2010/xslt-xquery-serialization";
88
declare namespace http = "http://expath.org/ns/http-client";
99
import 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";
1515
import 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";
1717
import 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

3434
declare
3535
%rest:GET
36-
%rest:path("/pebble/version")
36+
%rest:path("/fusiondb/version")
3737
%rest:produces("application/json")
3838
%output:method("json")
3939
function api:version() {
@@ -46,7 +46,7 @@ function api:version() {
4646

4747
declare
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

5959
declare
6060
%rest:GET
61-
%rest:path("/pebble/document")
61+
%rest:path("/fusiondb/document")
6262
%rest:query-param("uri", "{$uri}")
6363
function api:get-document($uri) {
6464
api:with-valid-uri-ex($uri, function($uri) {
@@ -87,7 +87,7 @@ function api:get-document($uri) {
8787

8888
declare
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

190190
declare
191191
%rest:DELETE
192-
%rest:path("/pebble/document")
192+
%rest:path("/fusiondb/document")
193193
%rest:query-param("uri", "{$uri}")
194194
function api:delete-document($uri) {
195195
api:with-valid-uri-ex($uri, function($uri) {
@@ -215,7 +215,7 @@ function api:delete-document($uri) {
215215

216216
declare
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

280280
declare
281281
%rest:DELETE
282-
%rest:path("/pebble/collection")
282+
%rest:path("/fusiondb/collection")
283283
%rest:query-param("uri", "{$uri}")
284284
function api:delete-collection($uri) {
285285
api:with-valid-uri-ex($uri, function($uri) {
@@ -304,7 +304,7 @@ function api:delete-collection($uri) {
304304

305305
declare
306306
%rest:GET
307-
%rest:path("/pebble/user")
307+
%rest:path("/fusiondb/user")
308308
%rest:produces("application/json")
309309
%output:method("json")
310310
function api:list-users() {
@@ -325,7 +325,7 @@ function api:list-users() {
325325

326326
declare
327327
%rest:GET
328-
%rest:path("/pebble/user/{$username}")
328+
%rest:path("/fusiondb/user/{$username}")
329329
%rest:produces("application/json")
330330
%output:method("json")
331331
function api:get-user($username) {
@@ -356,7 +356,7 @@ function api:get-user($username) {
356356

357357
declare
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

394394
declare
395395
%rest:DELETE
396-
%rest:path("/pebble/user/{$username}")
396+
%rest:path("/fusiondb/user/{$username}")
397397
%rest:produces("application/json")
398398
%output:method("json")
399399
function api:delete-user($username) {
@@ -426,7 +426,7 @@ function api:delete-user($username) {
426426

427427
declare
428428
%rest:GET
429-
%rest:path("/pebble/group")
429+
%rest:path("/fusiondb/group")
430430
%rest:produces("application/json")
431431
%output:method("json")
432432
function api:list-groups() {
@@ -447,7 +447,7 @@ function api:list-groups() {
447447

448448
declare
449449
%rest:GET
450-
%rest:path("/pebble/group/{$groupname}")
450+
%rest:path("/fusiondb/group/{$groupname}")
451451
%rest:produces("application/json")
452452
%output:method("json")
453453
function api:get-group($groupname) {
@@ -478,7 +478,7 @@ function api:get-group($groupname) {
478478

479479
declare
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

516516
declare
517517
%rest:DELETE
518-
%rest:path("/pebble/group/{$groupname}")
518+
%rest:path("/fusiondb/group/{$groupname}")
519519
%rest:produces("application/json")
520520
%output:method("json")
521521
function api:delete-group($groupname) {
@@ -548,7 +548,7 @@ function api:delete-group($groupname) {
548548

549549
declare
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

576576
declare
577577
%rest:GET
578-
%rest:path("/pebble/restxq")
578+
%rest:path("/fusiondb/restxq")
579579
%rest:produces("application/json")
580580
%output:method("json")
581581
function api:restxq() {
@@ -587,7 +587,7 @@ function api:restxq() {
587587

588588
declare
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")

src/main/xar-resources/modules/collection.xqm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
xquery version "3.1";
22

3-
module namespace col = "http://evolvedbinary.com/ns/pebble/api/collection";
3+
module namespace col = "http://fusiondb.com/ns/studio/api/collection";
44

5-
import module namespace perr = "http://evolvedbinary.com/ns/pebble/api/error" at "error.xqm";
6-
import module namespace ut = "http://evolvedbinary.com/ns/pebble/api/util" at "util.xqm";
5+
import module namespace perr = "http://fusiondb.com/ns/studio/api/error" at "error.xqm";
6+
import module namespace ut = "http://fusiondb.com/ns/studio/api/util" at "util.xqm";
77

88
import module namespace sm = "http://exist-db.org/xquery/securitymanager";
99
import module namespace xmldb = "http://exist-db.org/xquery/xmldb";
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
xquery version "3.1";
22

3-
module namespace config = "http://evolvedbinary.com/ns/pebble/api/config";
3+
module namespace config = "http://fusiondb.com/ns/studio/api/config";
44

55
declare variable $config:version as xs:string := "0.0.1";

src/main/xar-resources/modules/document.xqm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
xquery version "3.1";
22

3-
module namespace doc = "http://evolvedbinary.com/ns/pebble/api/document";
3+
module namespace doc = "http://fusiondb.com/ns/studio/api/document";
44

5-
import module namespace perr = "http://evolvedbinary.com/ns/pebble/api/error" at "error.xqm";
6-
import module namespace ut = "http://evolvedbinary.com/ns/pebble/api/util" at "util.xqm";
5+
import module namespace perr = "http://fusiondb.com/ns/studio/api/error" at "error.xqm";
6+
import module namespace ut = "http://fusiondb.com/ns/studio/api/util" at "util.xqm";
77

88
import module namespace sm = "http://exist-db.org/xquery/securitymanager";
99
import module namespace util = "http://exist-db.org/xquery/util";

src/main/xar-resources/modules/error.xqm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
xquery version "3.1";
22

3-
module namespace perr = "http://evolvedbinary.com/ns/pebble/api/error";
3+
module namespace perr = "http://fusiondb.com/ns/studio/api/error";
44

55
declare variable $perr:PD001 := map {
6-
"code": fn:QName("http://evolvedbinary.com/ns/pebble/api/error", "PD001"),
6+
"code": fn:QName("http://fusiondb.com/ns/studio/api/error", "PD001"),
77
"description": "Permission Denied"
88
};
99

1010
declare variable $perr:PD002 := map {
11-
"code": fn:QName("http://evolvedbinary.com/ns/pebble/api/error", "PD002"),
11+
"code": fn:QName("http://fusiondb.com/ns/studio/api/error", "PD002"),
1212
"description": "Source Collection URI, does not exist"
1313
};
1414

1515
declare variable $perr:PD003 := map {
16-
"code": fn:QName("http://evolvedbinary.com/ns/pebble/api/error", "PD003"),
16+
"code": fn:QName("http://fusiondb.com/ns/studio/api/error", "PD003"),
1717
"description": "Source Document URI, does not exist"
1818
};
1919

src/main/xar-resources/modules/explorer.xqm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
xquery version "3.1";
22

3-
module namespace exp = "http://evolvedbinary.com/ns/pebble/api/explorer";
3+
module namespace exp = "http://fusiondb.com/ns/studio/api/explorer";
44

5-
import module namespace ut = "http://evolvedbinary.com/ns/pebble/api/util" at "util.xqm";
5+
import module namespace ut = "http://fusiondb.com/ns/studio/api/util" at "util.xqm";
66

77
import module namespace map = "http://www.w3.org/2005/xpath-functions/map";
88
import module namespace sm = "http://exist-db.org/xquery/securitymanager";

src/main/xar-resources/modules/index.xqm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
xquery version "3.1";
22

3-
module namespace idx = "http://evolvedbinary.com/ns/pebble/api/index";
3+
module namespace idx = "http://fusiondb.com/ns/studio/api/index";
44

55
declare namespace cc = "http://exist-db.org/collection-config/1.0";
66

7-
import module namespace ut = "http://evolvedbinary.com/ns/pebble/api/util" at "util.xqm";
7+
import module namespace ut = "http://fusiondb.com/ns/studio/api/util" at "util.xqm";
88

99
declare function idx:list-explicit() as xs:string* {
1010
(: Note: the predicate filters out index definitons which only mention the old legacy full-text index :)

src/main/xar-resources/modules/multipart.xqm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
xquery version "3.1";
22

3-
module namespace mul = "http://evolvedbinary.com/ns/pebble/api/multipart";
3+
module namespace mul = "http://fusiondb.com/ns/studio/api/multipart";
44

55
declare namespace functx = "http://www.functx.com";
66

src/main/xar-resources/modules/query.xqm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
xquery version "3.1";
22

3-
module namespace qry = "http://evolvedbinary.com/ns/pebble/api/query";
3+
module namespace qry = "http://fusiondb.com/ns/studio/api/query";
44

55
declare namespace array = "http://www.w3.org/2005/xpath-functions/array";
66
import module namespace util = "http://exist-db.org/xquery/util";

src/main/xar-resources/modules/restxq.xqm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
xquery version "3.1";
22

3-
module namespace prxq = "http://evolvedbinary.com/ns/pebble/api/restxq";
3+
module namespace prxq = "http://fusiondb.com/ns/studio/api/restxq";
44

55
import module namespace rest = "http://exquery.org/ns/restxq";
66

0 commit comments

Comments
 (0)