Skip to content

HTTP API: Add missing defaults/enums, fix mistakes #718

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions site/content/3.11/develop/http-api/databases.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,15 @@ paths:
properties:
sharding:
description: |
The sharding method to use for new collections in this database. Valid values
are: "", "flexible", or "single". The first two are equivalent. _(cluster only)_
The sharding method to use for new collections in this database. _(cluster only)_
Valid values are:
- `""` or `"flexible"`: Create a database where collections can have any
number of shards and the shards can reside on different DB-Servers.
- `"single"`: Create a OneShard database where all collections have a
single shard and the shards are placed on the same DB-Server.
type: string
enum: ["", flexible, single]
default: ""
replicationFactor:
description: |
Default replication factor for new collections created in this database.
Expand Down
6 changes: 6 additions & 0 deletions site/content/3.11/develop/http-api/documents.md
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ paths:
therefore they can only be performed on collections sharded by `_key`.
schema:
type: boolean
default: false
- name: overwriteMode
in: query
required: false
Expand All @@ -499,6 +500,8 @@ paths:
not set, and the `overwrite` flag is `false` or not set either.
schema:
type: string
enum: [ignore, replace, update, conflict]
default: conflict
- name: keepNull
in: query
required: false
Expand Down Expand Up @@ -1946,6 +1949,7 @@ paths:
therefore they can only be performed on collections sharded by `_key`.
schema:
type: boolean
default: false
- name: overwriteMode
in: query
required: false
Expand All @@ -1970,6 +1974,8 @@ paths:
not set, and the `overwrite` flag is `false` or not set either.
schema:
type: string
enum: [ignore, replace, update, conflict]
default: conflict
- name: keepNull
in: query
required: false
Expand Down
10 changes: 8 additions & 2 deletions site/content/3.12/develop/http-api/databases.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,15 @@ paths:
properties:
sharding:
description: |
The sharding method to use for new collections in this database. Valid values
are: "", "flexible", or "single". The first two are equivalent. _(cluster only)_
The sharding method to use for new collections in this database. _(cluster only)_
Valid values are:
- `""` or `"flexible"`: Create a database where collections can have any
number of shards and the shards can reside on different DB-Servers.
- `"single"`: Create a OneShard database where all collections have a
single shard and the shards are placed on the same DB-Server.
type: string
enum: ["", flexible, single]
default: ""
replicationFactor:
description: |
Default replication factor for new collections created in this database.
Expand Down
6 changes: 6 additions & 0 deletions site/content/3.12/develop/http-api/documents.md
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ paths:
therefore they can only be performed on collections sharded by `_key`.
schema:
type: boolean
default: false
- name: overwriteMode
in: query
required: false
Expand All @@ -489,6 +490,8 @@ paths:
not set, and the `overwrite` flag is `false` or not set either.
schema:
type: string
enum: [ignore, replace, update, conflict]
default: conflict
- name: keepNull
in: query
required: false
Expand Down Expand Up @@ -2004,6 +2007,7 @@ paths:
therefore they can only be performed on collections sharded by `_key`.
schema:
type: boolean
default: false
- name: overwriteMode
in: query
required: false
Expand All @@ -2028,6 +2032,8 @@ paths:
not set, and the `overwrite` flag is `false` or not set either.
schema:
type: string
enum: [ignore, replace, update, conflict]
default: conflict
- name: keepNull
in: query
required: false
Expand Down
10 changes: 8 additions & 2 deletions site/content/3.13/develop/http-api/databases.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,15 @@ paths:
properties:
sharding:
description: |
The sharding method to use for new collections in this database. Valid values
are: "", "flexible", or "single". The first two are equivalent. _(cluster only)_
The sharding method to use for new collections in this database. _(cluster only)_
Valid values are:
- `""` or `"flexible"`: Create a database where collections can have any
number of shards and the shards can reside on different DB-Servers.
- `"single"`: Create a OneShard database where all collections have a
single shard and the shards are placed on the same DB-Server.
type: string
enum: ["", flexible, single]
default: ""
replicationFactor:
description: |
Default replication factor for new collections created in this database.
Expand Down
6 changes: 6 additions & 0 deletions site/content/3.13/develop/http-api/documents.md
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ paths:
therefore they can only be performed on collections sharded by `_key`.
schema:
type: boolean
default: false
- name: overwriteMode
in: query
required: false
Expand All @@ -489,6 +490,8 @@ paths:
not set, and the `overwrite` flag is `false` or not set either.
schema:
type: string
enum: [ignore, replace, update, conflict]
default: conflict
- name: keepNull
in: query
required: false
Expand Down Expand Up @@ -2004,6 +2007,7 @@ paths:
therefore they can only be performed on collections sharded by `_key`.
schema:
type: boolean
default: false
- name: overwriteMode
in: query
required: false
Expand All @@ -2028,6 +2032,8 @@ paths:
not set, and the `overwrite` flag is `false` or not set either.
schema:
type: string
enum: [ignore, replace, update, conflict]
default: conflict
- name: keepNull
in: query
required: false
Expand Down