12 Feb, 2013
1 commit
-
Different status codes in the API lib are returned on hook creation, update or deletion. If a required parameter is not given (e.g. `url` in `/projects/:id/hooks/:hook_id`) status code 400 (Bad request) is returned. On hook deletion a 200 status code is returned, regardless if the hook is present or not. This makes the DELETE function an idempotent operation. Appropriate tests are added to check these status codes.
08 Feb, 2013
3 commits
-
When adding a project hook a url must be specified or a 400 error code is returned * Specs added to check status code on handling project hooks * refactored code, extracted a method
-
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.
01 Feb, 2013
1 commit
-
The attempt to revoke project access for a user that was not member of the project results in a 500 Internal Server error where it actually should result in a 200 OK since after the operation, the user is not member of the project. This turns the operation into an idempotent call that can be repeated with no ill effects. Updated the spec and changed the code accordingly. However, the result differs slightly, as we can't return the users project access level if the user was not member. I'm not aware if anybody relies on the result of this call. Fixes #2832
31 Jan, 2013
1 commit
18 Jan, 2013
1 commit
17 Jan, 2013
1 commit
04 Jan, 2013
1 commit
02 Jan, 2013
1 commit
22 Dec, 2012
1 commit
21 Dec, 2012
2 commits
20 Dec, 2012
1 commit
23 Nov, 2012
2 commits
10 Nov, 2012
1 commit
12 Oct, 2012
1 commit
-
Added methods for listing one project hook and editing hooks. GET /project/:id/hooks/:hook_id PUT /project/:id/hooks/:hook_id
08 Oct, 2012
2 commits
21 Sep, 2012
4 commits
-
API for project team members
16 Sep, 2012
2 commits
10 Sep, 2012
4 commits
08 Sep, 2012
3 commits
06 Sep, 2012
2 commits
05 Sep, 2012
2 commits
03 Sep, 2012
2 commits
31 Aug, 2012
1 commit