14 May, 2013
1 commit
01 Apr, 2013
1 commit
27 Feb, 2013
1 commit
-
The API documentation of merge requests contains info to status codes for all functions. Required arguments are now checked in the merge requests API functions and a `400 Bad Request` error is returned if they are not given.
20 Feb, 2013
1 commit
-
Conflicts: spec/requests/api/projects_spec.rb
18 Feb, 2013
1 commit
13 Feb, 2013
1 commit
-
Extracted a method for 400 error (Bad request) and adjusted code accordingly. The name of the missing attribute is used to show which one was missing from the request. It is used to give an appropriate message in the json response.
06 Feb, 2013
3 commits
-
Creating a comment to an existing merge request via API without providing a note returns a status code 400 now, suggesting a bad request. The reason for this is the resource itself (MR) exists but the required property is not set.
-
Using the API library to create or update a merge request at the moment a 404 error is returned. This is fine when the merge request in question does not exist, but does not provide good information that for example a required attribute is missing. A status code of 400 (Bad request) is returned when creating or updating a merge request when either `source_branch` or `target_branch` is missing. A status code of 409 is returned when `source_branch` and `target_branch` are the same. Tests are added for these cases.
04 Jan, 2013
1 commit
02 Jan, 2013
2 commits
23 Nov, 2012
1 commit
13 Nov, 2012
1 commit
25 Oct, 2012
2 commits