summaryrefslogtreecommitdiff
path: root/doc/code/classes/SnippetsController.html
diff options
context:
space:
mode:
authorSebastian Ziebell <sebastian.ziebell@asquera.de>2013-02-08 14:33:29 +0100
committerSebastian Ziebell <sebastian.ziebell@asquera.de>2013-02-08 14:33:29 +0100
commit818caf0b5d1fc4f0cb2889ca5bd9e2d0d7fd8ac8 (patch)
tree4e8210991a0d0b1c9038e052e5e95784ca69b3a0 /doc/code/classes/SnippetsController.html
parent8045a81bcf5822f1992442750e1484a93c368229 (diff)
downloadgitlab-ce-818caf0b5d1fc4f0cb2889ca5bd9e2d0d7fd8ac8.tar.gz
API: refined status code handling when adding or updating a project member
When a user is added to a project that is already a member of, a status code 201 is now returned to signal an idempotent operation. If something fails then instead of returning error code 404 different more specific error codes are returned. Status code 400 (Bad request) is returned when a required attribute, e.g. `access_level` is not given or 422 if there is a semantic error, e.g. should the `access_level` have an unsupported value. Specs are added to check these status codes.
Diffstat (limited to 'doc/code/classes/SnippetsController.html')
0 files changed, 0 insertions, 0 deletions