Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-02-05 03:09:28 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-02-05 03:09:28 +0300
commit84d0065f0a5ee5bad180b1925a87dcda60d8519d (patch)
tree8b4cbf431e47f1453e8c651180f844c41c6b0aaa /doc/api/README.md
parentf4726e9f5029931fc74aee9d5eff93d6a762dcff (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/README.md')
-rw-r--r--doc/api/README.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/api/README.md b/doc/api/README.md
index da8a788bd80..3ba88132c25 100644
--- a/doc/api/README.md
+++ b/doc/api/README.md
@@ -744,3 +744,15 @@ For administrator documentation on rate limit settings, see
[Rate limits](../security/rate_limits.md). To find the settings that are
specifically used by GitLab.com, see
[GitLab.com-specific rate limits](../user/gitlab_com/index.md#gitlabcom-specific-rate-limits).
+
+## Content type
+
+The GitLab API supports the `application/json` content type by default, though
+some API endpoints also support `text/plain`.
+
+In [GitLab 13.9 and later](https://gitlab.com/gitlab-org/gitlab/-/issues/250342),
+API endpoints do not support `text/plain` by default, unless it's explicitly documented.
+
+This change is deployed behind the `:api_always_use_application_json` [feature flag](../user/feature_flags.md),
+enabled by default. On GitLab self-managed instances, GitLab administrators can choose
+to [disable it](../administration/feature_flags.md). **(FREE SELF)**