818caf0b5d
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. |
||
---|---|---|
.. | ||
groups_spec.rb | ||
issues_spec.rb | ||
merge_requests_spec.rb | ||
milestones_spec.rb | ||
notes_spec.rb | ||
projects_spec.rb | ||
session_spec.rb | ||
users_spec.rb |