Node Express REST API - Request Validation Tutorial

Veröffentlicht am: 13 März 2024
auf dem Kanal: Dev Shack Coding Academy
116
3

➡️ Subscribe here: https://bit.ly/3v8Mdje

Learn how to safeguard your Node.js and Express REST API's by validating incoming HTTP requests. In this tutorial I will show you how to use a powerful NPM package to filter out unwanted data.

Welcome to ‪@devshackcodingacademy‬ your channel for learning valuable tech skills that help you grow your career, build the applications you envision and become indispensable in a digital age.


🔔 Subscribe now: Click here to stay updated on the latest tutorials and grow your tech skills!
https://bit.ly/3v8Mdje


🎬 Watch next:

Validating Username and Passwords in Express:    • 22 - Node.js + Passport - Local Authentica...  
Playlist: Node.js + Passport - Local Auth Strategy:    • Node Express API Authentication with Passp...  



🗓 I release new videos every every week, so be sure to subscribe and tune in.


Thanks for watching!

0:00 - Intro
0:16 - Installing our dependencies
0:28 - Adjusting NPM scripts to use nodemon
0:42 - Implementing the express server code
1:45 - Creating a POST request handler
2:35 - Testing our POST request handler with cURL
3:16 - Request handler validation explanation
3:53 - Installing validate.js
4:25 - Implementing validate.single method
6:02 - Inspecting the validate.single output
6:29 - Adding a custom error message
6:54 - Using conditional logic to return a 400 bad request error
7:43 - Lesson conclusion


Auf dieser Seite können Sie das Online-Video Node Express REST API - Request Validation Tutorial mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Dev Shack Coding Academy 13 März 2024 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 116 Mal angesehen und es wurde von 3 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!