REST API validation in nodejs

preview_player
Показать описание
In this video I am going to show you how to validate REST API using
get source code with validation

npm install @hapi/joi

joi lets you describe your data using a simple, intuitive, and readable language. Like the rest of the hapi ecosystem it fits in, joi allows you to describe your data for both input and output validation, as part of a hapi HTTP server or standalone.
Рекомендации по теме
Комментарии
Автор

I came looking for copper and I found gold!
Thank you so much, you are my hero! :D

mikeort
Автор

4:01 thanks for saving me i was stuck at number validation for soo much time. Thanks.

KSHMRGAMING
Автор

Nice videos guy, thanks It helped me.

cristhianjonathangomezramo
Автор

Good tutorial but now this package is deprecated.so can u use other packages?

RN-jozt
Автор

How to use async await in getUser sir?

jonathanlogin
Автор

Does this technique work with nested request body objects? For example, instead of req.body .firstName, ... req.body.userInfo.firstName. I have tried express-validator and it does not work.

skisteepndeep
Автор

make a video on Express validator as well

mayankk
Автор

In NPM Site shows messages like "This package has been deprecated", shall I use hapi/joi in my project?

jeyakrishnank
Автор

Status code is 400 throw errors
You aare using 200 is used for The request succeeded. The result meaning of "success" depends on the HTTP method:

ashoksahani
Автор

nice video, my requirement is to validate the the the response after getting from get call, from this response few field I have to validate before persisting to db. Please help

sudhirkk
Автор

It gives error as Joi.email is not a function.

krupalirao
Автор

Hi, i got this error Route.post() requires a callback function but got a [object Undefined]

richardwilliam
Автор

one again sir.. pls upload video how to upload image use your REST API. i still learning from u sir.

jonathanlogin
Автор

sir please OTP sending and email per video banaye nodejs me

instant-code
Автор

How to validate if I want two option for example
WEIGHT: Input").required()
I want integer and Float also how can achieve this

abhijeetsamanta
Автор

haha copied logo from technical guruji

karma_yogi_
welcome to shbcf.ru