OSDN Git Service

API: extracted helper method to validate required parameters, code clean up
authorSebastian Ziebell <sebastian.ziebell@asquera.de>
Wed, 27 Feb 2013 16:50:30 +0000 (17:50 +0100)
committerSebastian Ziebell <sebastian.ziebell@asquera.de>
Wed, 27 Feb 2013 16:50:30 +0000 (17:50 +0100)
commit7499f65014257989510da50505fa7c0f5a4fae88
treeb8c9355b73ec48c12bfa9d6416fa91ba4c4444e6
parent43d75960303be538fb79804ca6e2a90241aee0df
API: extracted helper method to validate required parameters, code clean up

Added a helper method to check if required parameters are given in an API call. Can be used
to return a `400 Bad Request` return code if a required attribute is missing.
Code clean up and fixed tests.
doc/api/projects.md
lib/api/groups.rb
lib/api/helpers.rb
lib/api/issues.rb
lib/api/merge_requests.rb
lib/api/milestones.rb
lib/api/notes.rb
lib/api/projects.rb
lib/api/users.rb
spec/requests/api/projects_spec.rb