Coding NodeJS APIs (pt 4) - Learn how to build APIs with NodeJS & AWS

preview_player
Показать описание
Validation of data being sent into an API is critical. The sooner you can catch any potential issues, the quicker you can send a message back to the user telling them what to fix. We're going to use express-validator to sanitize our API inputs.

👩‍💻 Get the Code:

👋 Connect w/me:

__________________________________________

🖥 My Rig

__________________________________________

🎥 Streaming Gear

__________________________________________

⏯ My Coding Series'

__________________________________________

📚 Other Excellent Learning Resources

Please note that links in this description may or may not be affiliate links, where I make a small commission if used.

Thanks For Watching!
Рекомендации по теме
Комментарии
Автор

Hey Brian! Excellent content, mate. Just a quick one about the check('rating').isNumeric(). doesn't the code need an else statement? otherwise, although the response status is 400, it still adds an entry to the DB with a string value from my testing

aarone
join shbcf.ru