You need to sign in or sign up before continuing.
Standardize use of `content` parameter in snippets API
There was some confusion over whether code
or content
is the right parameter
for snippets. Internally, the database stores content
. However:
-
Project snippets use
code
.code
gets remapped incontent
inlib/api/project_snippets.rb
. -
Personal snippets use
content
.
To unify these APIs, allow an alias of content
to work for project
snippets.
I'm holding off updating the docs to reflect this because https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/32295 needs to be merged and pick into older releases.
Edited by Stan Hu