Skip to content
代码片段 群组 项目
该项目从 https://gitlab.com/gitlab-org/gitlab.git 镜像。 拉取镜像更新于
  1. 3月 06, 2013
  2. 3月 04, 2013
  3. 3月 02, 2013
  4. 2月 28, 2013
  5. 2月 27, 2013
  6. 2月 21, 2013
  7. 2月 20, 2013
  8. 2月 19, 2013
  9. 2月 18, 2013
  10. 2月 16, 2013
  11. 2月 15, 2013
  12. 2月 14, 2013
  13. 2月 13, 2013
    • Sebastian Ziebell's avatar
      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
    • Sebastian Ziebell's avatar
    • Sebastian Ziebell's avatar
      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
    • Sebastian Ziebell's avatar
      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
  14. 2月 10, 2013
  15. 2月 09, 2013
  16. 2月 08, 2013
    • Sebastian Ziebell's avatar
      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
    • Sebastian Ziebell's avatar
      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
  17. 2月 07, 2013
加载中