Commit 01217d3d authored by GitLab Bot's avatar GitLab Bot

Automatic merge of gitlab-org/gitlab-ce master

parents 8a444ad8 bfdb41be
...@@ -165,15 +165,15 @@ Parameters: ...@@ -165,15 +165,15 @@ Parameters:
|:--------------|:-------|:---------|:---------------------------------------------------| |:--------------|:-------|:---------|:---------------------------------------------------|
| `title` | string | yes | Title of a snippet. | | `title` | string | yes | Title of a snippet. |
| `file_name` | string | yes | Name of a snippet file. | | `file_name` | string | yes | Name of a snippet file. |
| `code` | string | yes | Content of a snippet. | | `content` | string | yes | Content of a snippet. |
| `description` | string | no | Description of a snippet. | | `description` | string | no | Description of a snippet. |
| `visibility` | string | yes | Snippet's [visibility](#snippet-visibility-level). | | `visibility` | string | no | Snippet's [visibility](#snippet-visibility-level). |
Example request: Example request:
```sh ```sh
curl --request POST \ curl --request POST \
--data '{"title": "This is a snippet", "code": "Hello world", "description": "Hello World snippet", "file_name": "test.txt", "visibility": "internal" }' \ --data '{"title": "This is a snippet", "content": "Hello world", "description": "Hello World snippet", "file_name": "test.txt", "visibility": "internal" }' \
--header 'Content-Type: application/json' \ --header 'Content-Type: application/json' \
--header "PRIVATE-TOKEN: valid_api_token" \ --header "PRIVATE-TOKEN: valid_api_token" \
https://gitlab.example.com/api/v4/snippets https://gitlab.example.com/api/v4/snippets
...@@ -222,14 +222,14 @@ Parameters: ...@@ -222,14 +222,14 @@ Parameters:
| `title` | string | no | Title of a snippet. | | `title` | string | no | Title of a snippet. |
| `file_name` | string | no | Name of a snippet file. | | `file_name` | string | no | Name of a snippet file. |
| `description` | string | no | Description of a snippet. | | `description` | string | no | Description of a snippet. |
| `code` | string | no | Content of a snippet. | | `content` | string | no | Content of a snippet. |
| `visibility` | string | no | Snippet's [visibility](#snippet-visibility-level). | | `visibility` | string | no | Snippet's [visibility](#snippet-visibility-level). |
Example request: Example request:
```sh ```sh
curl --request PUT \ curl --request PUT \
--data '{"title": "foo", "code": "bar"}' \ --data '{"title": "foo", "content": "bar"}' \
--header 'Content-Type: application/json' \ --header 'Content-Type: application/json' \
--header "PRIVATE-TOKEN: valid_api_token" \ --header "PRIVATE-TOKEN: valid_api_token" \
https://gitlab.example.com/api/v4/snippets/1 https://gitlab.example.com/api/v4/snippets/1
......
...@@ -186,7 +186,7 @@ When a pool repository record is created in SQL on a Geo primary, this ...@@ -186,7 +186,7 @@ When a pool repository record is created in SQL on a Geo primary, this
will eventually trigger an event on the Geo secondary. The Geo secondary will eventually trigger an event on the Geo secondary. The Geo secondary
will then create the pool repository in Gitaly. This leads to an will then create the pool repository in Gitaly. This leads to an
"eventually consistent" situation because as each pool participant gets "eventually consistent" situation because as each pool participant gets
synchronized, Geo will eventuall trigger garbage collection in Gitaly on synchronized, Geo will eventually trigger garbage collection in Gitaly on
the secondary, at which stage Git objects will get deduplicated. the secondary, at which stage Git objects will get deduplicated.
> TODO How do we handle the edge case where at the time the Geo > TODO How do we handle the edge case where at the time the Geo
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment