gitlab-org--gitlab-foss/changelogs/unreleased/sh-support-content-for-snippets-api.yml
Stan Hu fc52421b55 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:

1. Project snippets use `code`. `code` gets remapped in `content` in
`lib/api/project_snippets.rb`.

2. Personal snippets use `content`.

To unify these APIs, allow an alias of `content` to work for project
snippets.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/66673
2019-08-28 22:54:07 -07:00

5 lines
109 B
YAML

---
title: Standardize use of `content` parameter in snippets API
merge_request: 32296
author:
type: changed