In my Grape endpoint I have a required param called user_type
. On the other hand, my public API declares this param as userType
, i.e. camel case. Is there a way to changes this?
module MyAPI
module V1
class SignUp < Grape::API
desc 'Create new user account'
params do
requires :email, type: String
requires :password, type: String
requires :user_type, type: String
end
post :sign_up do
{}
end
end
end
end