diff options
author | James Lopez <james@jameslopez.es> | 2018-12-04 13:57:36 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2018-12-04 13:57:36 +0300 |
commit | 848e827c0de5fef0541ef5ab174fef7cd48e4324 (patch) | |
tree | 7ee9fa374b6d8929a334278c21e670161c8f1600 | |
parent | 1c34a2a01497f9db4602794b1aa37ae54dcee740 (diff) |
Add docs and changelog
-rw-r--r-- | changelogs/unreleased/54826-use-read_repository-scope-on-read-only-files-endpoints.yml | 5 | ||||
-rw-r--r-- | doc/api/repository_files.md | 12 |
2 files changed, 17 insertions, 0 deletions
diff --git a/changelogs/unreleased/54826-use-read_repository-scope-on-read-only-files-endpoints.yml b/changelogs/unreleased/54826-use-read_repository-scope-on-read-only-files-endpoints.yml new file mode 100644 index 00000000000..af44c1cd263 --- /dev/null +++ b/changelogs/unreleased/54826-use-read_repository-scope-on-read-only-files-endpoints.yml @@ -0,0 +1,5 @@ +--- +title: Use read_repository scope on read-only files API +merge_request: +author: +type: fixed diff --git a/doc/api/repository_files.md b/doc/api/repository_files.md index c3624f1a535..4bbb93806de 100644 --- a/doc/api/repository_files.md +++ b/doc/api/repository_files.md @@ -4,6 +4,18 @@ **Create, read, update and delete repository files using this API** +The different scopes available using [personal access tokens][personal-access-tokens] are depicted +in the following table. + +| Scope | Description | +| ----- | ----------- | +| `read_repository` | Allows read-access to the repository files | +| `api` | Allows read-write access to the repository files | + +> `read_repository` scope was [introduced](https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/23534) in GitLab 11.5.3. + +[personal-access-tokens]: (../user/profile/personal_access_tokens.md) + ## Get file from repository Allows you to receive information about file in repository like name, size, |