1. 24 9月, 2013 1 次提交
  2. 14 8月, 2013 1 次提交
  3. 13 7月, 2013 1 次提交
  4. 09 7月, 2013 1 次提交
  5. 12 6月, 2013 1 次提交
  6. 07 6月, 2013 1 次提交
  7. 06 6月, 2013 1 次提交
  8. 05 6月, 2013 1 次提交
  9. 04 6月, 2013 2 次提交
  10. 23 5月, 2013 1 次提交
  11. 14 5月, 2013 1 次提交
  12. 07 5月, 2013 1 次提交
  13. 06 5月, 2013 1 次提交
  14. 03 4月, 2013 1 次提交
  15. 01 4月, 2013 1 次提交
  16. 25 3月, 2013 1 次提交
  17. 19 3月, 2013 1 次提交
  18. 07 3月, 2013 1 次提交
  19. 06 3月, 2013 3 次提交
  20. 05 3月, 2013 1 次提交
  21. 02 3月, 2013 2 次提交
  22. 28 2月, 2013 1 次提交
  23. 27 2月, 2013 3 次提交
  24. 20 2月, 2013 1 次提交
  25. 16 2月, 2013 1 次提交
    • S
      API: fixes visibility of project hook · e9d3b965
      Sebastian Ziebell 提交于
      When a user is not authorized to see the list of hooks for a project, he is
      still able to access the hooks separately. For example if access to
      `GET /projects/:id/hooks` fails and returns a `403 Unauthorized` error it is
      still possible to access a hook directly via `GET /projects/:id/hooks/:hook_id`.
      
      Fixes access, also added tests to check access and status codes of hooks.
      e9d3b965
  26. 14 2月, 2013 4 次提交
  27. 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
  28. 10 2月, 2013 1 次提交