grape icon indicating copy to clipboard operation
grape copied to clipboard

Camel case params

Open danieldraper opened this issue 10 years ago • 1 comments

Hi - Curious on recommendations for using lower camel case for request params but map them to snake case for the model? I am using Roar for representing the response so no issues here just the incoming. Could not find this documented anywhere.

desc "Create an user"
params do
  requires :first_name, as: :firstName, type: String
end

danieldraper avatar Apr 22 '16 04:04 danieldraper

Do you mean how to do it? I'll close this though. Please use the Grape mailing list for questions.

dblock avatar Apr 22 '16 13:04 dblock