You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/assets/attachments/rest-api-admin-database.yaml
+40-47Lines changed: 40 additions & 47 deletions
Original file line number
Diff line number
Diff line change
@@ -1144,20 +1144,34 @@ definitions:
1144
1144
1145
1145
sync:
1146
1146
$ref: '#/definitions/sync_function_model'
1147
-
1148
-
users:
1147
+
#
1148
+
# users:
1149
+
# type: object
1150
+
# title: user_configuration_model
1151
+
# description: |+
1152
+
# Defines the user(s) for this Sync Gateway database
1153
+
# $ref: "#/definitions/user_configuration_model"
1154
+
1155
+
# roles:
1156
+
# type: object
1157
+
# title: role_configuration_model
1158
+
# description: |+
1159
+
# Defines the role(s) for this Sync Gateway database
1160
+
# $ref: "#/definitions/role_configuration_model"
1161
+
1162
+
guest:
1149
1163
type: object
1150
-
title: user_configuration_model
1151
1164
description: |+
1152
-
Defines the user(s) for this Sync Gateway database
1153
-
$ref: "#/definitions/user_configuration_model"
1165
+
Defines whether a GUEST user is available and able to interacted, unauthenticated, with the Public REST API
1166
+
properties:
1167
+
disabled:
1168
+
type: boolean
1169
+
default: true
1170
+
description: |+
1171
+
Set `disabled` = `false` to allow GUEST
1154
1172
1155
-
roles:
1156
-
type: object
1157
-
title: role_configuration_model
1158
-
description: |+
1159
-
Defines the role(s) for this Sync Gateway database
1160
-
$ref: "#/definitions/role_configuration_model"
1173
+
For example:
1174
+
```curl -X PUT username:password@localhost:4985/db/_config -H "Content-Type: application/json" --data-binary '{"guest": {"disabled":false}}```
1161
1175
1162
1176
revs_limit:
1163
1177
type: integer
@@ -1240,11 +1254,8 @@ definitions:
1240
1254
{
1241
1255
"databases": {
1242
1256
"db": {
1243
-
"server": "http://localhost:8091",
1244
1257
"bucket": "default",
1245
-
"password": "password",
1246
1258
"import_docs": true,
1247
-
"enable_shared_bucket_access": true,
1248
1259
"import_filter": `
1249
1260
function(doc) {
1250
1261
if (doc.type != "mobile") {
@@ -1782,23 +1793,23 @@ definitions:
1782
1793
The default is `7776000` seconds (90 days).
1783
1794
default: 7776000
1784
1795
1785
-
enable_shared_bucket_access:
1786
-
type: boolean
1787
-
description: |+
1788
-
**Deprecated at 3.0**
1796
+
#enable_shared_bucket_access:
1797
+
# type: boolean
1798
+
# description: |+
1799
+
# **Deprecated at 3.0**
1789
1800
1790
-
use the `enable_shared_bucket_access` property to define whether to use extended attributes to store sync metadata; this is required to enable mobile-to-server data sync (_mobile convergence_).
1801
+
# use the `enable_shared_bucket_access` property to define whether to use extended attributes to store sync metadata; this is required to enable mobile-to-server data sync (_mobile convergence_).
1791
1802
1792
-
You can learn more about this functionality in [Syncing with Couchbase Server](sync-with-couchbase-server.html)
1803
+
# You can learn more about this functionality in [Syncing with Couchbase Server](sync-with-couchbase-server.html)
1793
1804
1794
-
This property works in conjunction with the ```import_docs``` property, which determines whether a node participates in import processing.
1805
+
# This property works in conjunction with the ```import_docs``` property, which determines whether a node participates in import processing.
1795
1806
1796
-
Set `enable_shared_bucket_access` to `true` on all nodes participating in such a configuration.
1807
+
# Set `enable_shared_bucket_access` to `true` on all nodes participating in such a configuration.
1797
1808
1798
-
On start-up, Sync Gateway will generate the mobile-specific metadata for all the pre-existing documents in the Couchbase Server bucket. From then on, documents can be inserted on the Server directly (with N1QL or SDKs) or through the Sync Gateway REST API.
1809
+
# On start-up, Sync Gateway will generate the mobile-specific metadata for all the pre-existing documents in the Couchbase Server bucket. From then on, documents can be inserted on the Server directly (with N1QL or SDKs) or through the Sync Gateway REST API.
-- Use of Delta Sync incurs additional bucket storage requirements which can be tuned with the [`rev_max_age_seconds`](#databases-this_db-delta_sync-rev_max_age_seconds) property.
1970
1963
1971
-
-- Delta Sync is automatically enabled for peer-to-peer sync between Couchbase Lite clients.
1964
+
-- Delta Sync is automatically enabled for peer-to-peer sync (where available) between Couchbase Lite clients.
1972
1965
1973
-
-- Delta sync is disabled for Couchbase Lite database replicas.
1966
+
-- Delta sync is disabled for Couchbase Lite database replicas (where available).
1974
1967
1975
1968
-- Push replications do not use Delta Sync when pushing to a pre-2.8 target.
# Defines the role(s) for this Sync Gateway database
2674
2671
# $ref: "#/definitions/role_configuration_model"
2675
2672
2673
+
guest:
2674
+
type: object
2675
+
description: |+
2676
+
Defines whether a GUEST user is available and able to interacted, unauthenticated, with the Public REST API
2677
+
properties:
2678
+
disabled:
2679
+
type: boolean
2680
+
default: true
2681
+
description: |+
2682
+
Set `disabled` = `false` to allow GUEST
2683
+
2684
+
For example:
2685
+
```curl -X PUT username:password@localhost:4985/db/_config -H "Content-Type: application/json" --data-binary '{"guest": {"disabled":false}}```
2686
+
2676
2687
revs_limit:
2677
2688
type: integer
2678
2689
description: |+
@@ -2746,7 +2757,7 @@ definitions:
2746
2757
import_filter:
2747
2758
type: string
2748
2759
description: |+
2749
-
The `import_filter` property holds a Javascript function that cpntrols whether a document written to the Couchbase Server bucket should be made available to Couchbase Mobile clients (that is, it should be imported).
2760
+
The `import_filter` property holds a Javascript function that controls whether a document written to the Couchbase Server bucket should be made available to Couchbase Mobile clients (that is, it should be imported).
2750
2761
2751
2762
This JavaScript filter function is provisioned using the Admin Rest API Endpoint ```put {db}/_config/import_filter```.
2752
2763
Add function as plain javascript in the request body, with the ```content-Type: application/javascript``` header.
0 commit comments