-
- Downloads
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.
parent
43d75960
No related branches found
No related tags found
Showing
- doc/api/projects.md 2 additions, 1 deletiondoc/api/projects.md
- lib/api/groups.rb 1 addition, 3 deletionslib/api/groups.rb
- lib/api/helpers.rb 11 additions, 0 deletionslib/api/helpers.rb
- lib/api/issues.rb 1 addition, 1 deletionlib/api/issues.rb
- lib/api/merge_requests.rb 2 additions, 5 deletionslib/api/merge_requests.rb
- lib/api/milestones.rb 1 addition, 2 deletionslib/api/milestones.rb
- lib/api/notes.rb 2 additions, 3 deletionslib/api/notes.rb
- lib/api/projects.rb 9 additions, 17 deletionslib/api/projects.rb
- lib/api/users.rb 2 additions, 7 deletionslib/api/users.rb
- spec/requests/api/projects_spec.rb 4 additions, 3 deletionsspec/requests/api/projects_spec.rb
Please register or sign in to comment