1. 28 2月, 2013 1 次提交
  2. 27 2月, 2013 7 次提交
  3. 21 2月, 2013 2 次提交
  4. 20 2月, 2013 2 次提交
  5. 19 2月, 2013 1 次提交
  6. 18 2月, 2013 3 次提交
  7. 16 2月, 2013 2 次提交
  8. 15 2月, 2013 1 次提交
  9. 14 2月, 2013 4 次提交
  10. 13 2月, 2013 4 次提交
    • S
      API: extracted helper method to provide 400 bad request error with description · 6fc3263e
      Sebastian Ziebell 提交于
      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.
      6fc3263e
    • S
    • S
      API: fixes a few return codes for project snippets · fd01f3aa
      Sebastian Ziebell 提交于
      When using project snippets via API the functions now provide status codes for
      different situations other then only returning 404 error. If required parameters are missing,
      e.g. `title` when creating a project snippet a 400 (Bad request) error is returned. The snippet
      delete function now is idempotent and returns a 200 (Ok) regardless if the snippet with the
      given id is available or not. Changing return codes of these functions has the advantage that
      the 404 error is used only for resources, which are not available.
      
      Tests added to check these status codes when handling project snippets.
      fd01f3aa
    • S
      API: changed status codes for project hooks functions · 7cc4339f
      Sebastian Ziebell 提交于
      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.
      7cc4339f
  11. 10 2月, 2013 1 次提交
  12. 09 2月, 2013 1 次提交
  13. 08 2月, 2013 2 次提交
    • S
      Adding a project hook returns status code 400 if url is not given · 9544f903
      Sebastian Ziebell 提交于
      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
      9544f903
    • S
      API: refined status code handling when adding or updating a project member · 818caf0b
      Sebastian Ziebell 提交于
      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.
      818caf0b
  14. 07 2月, 2013 5 次提交
  15. 06 2月, 2013 1 次提交
    • S
      Creating or updating a MR returns more informative status codes. · 413952ff
      Sebastian Ziebell 提交于
      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.
      413952ff
  16. 05 2月, 2013 2 次提交
  17. 04 2月, 2013 1 次提交