Testing Rails 5 API with Postman

Stéphane Paquet
Jul 16, 2017 · 2 min read

Why Mass-Assignment is a problem?

Testing the API with Postman

Now, let’s test it using Postman!

{"email": "StrangeName@Provider.net", "password": "12345678", "password_confirmation": "12345678"}
params.require(:user).permit(:email, :password, :password_confirmation)
{ "user": {"email": "Testemail@ISP.net", "password": "12345678", "password_confirmation": "12345678"}}

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade