-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Description
Hi folks, given the following api:
resource :users do
params do
requires :email_address, allow_blank: false
requires :password, allow_blank: false
end
post do
User.create!(email: params[:email_address], password: params[:password])
end
end
Do you think the following api would be nice? (alias as:
)
resource :users do
params do
requires :email, allow_blank: false, as: :email_address
requires :password, allow_blank: false
end
post do
User.create!(params)
end
end
tasos31