-
- Downloads
API: extracted helper method to provide 400 bad request error with description
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.
parent
54ab9bb6
No related branches found
No related tags found
Showing
- lib/api/helpers.rb 6 additions, 0 deletionslib/api/helpers.rb
- lib/api/merge_requests.rb 3 additions, 3 deletionslib/api/merge_requests.rb
- lib/api/milestones.rb 1 addition, 1 deletionlib/api/milestones.rb
- lib/api/notes.rb 1 addition, 1 deletionlib/api/notes.rb
- lib/api/projects.rb 12 additions, 12 deletionslib/api/projects.rb
- spec/requests/api/merge_requests_spec.rb 5 additions, 0 deletionsspec/requests/api/merge_requests_spec.rb
Please register or sign in to comment