#3: Build RESTFul API ✌ Handling Get Request in REST API using NodeJS & MongoDB in Hindi 2020

Поділитися
Вставка
  • Опубліковано 17 гру 2024

КОМЕНТАРІ • 107

  • @ThapaTechnical
    @ThapaTechnical  4 роки тому +19

    Guys, it's very important video, Handling GET Request in RESTFul API❤️ Hope you love the video 👍

    • @niranjankumarkushwaha6761
      @niranjankumarkushwaha6761 4 роки тому

      Thank you so much sir for your splendor efforts , I learnt a lot from your videos. I have a humble request to you to create a full project on MERN stack like whatsapp or facebook. You are really awesome . Thanks

    • @dhruv9317
      @dhruv9317 2 роки тому

      API hosting ke liye v ek video bana do

  • @okaifsid4581
    @okaifsid4581 3 роки тому +12

    The funniest part is 3-2-1 boom guys and errors came 🤣

  • @sanatanShishya1521
    @sanatanShishya1521 4 роки тому +11

    Very nice video,
    Aap please is series ko complete kriyega,
    Doesn't matter how much views and likes will come in this video's,
    Because it is significantly helping everyone who actuallty want to learn from here and get a good grasp in technical skills.
    Thanks for your all effort and hard work..!!
    Keep growing.

  • @visitor_t-w3p
    @visitor_t-w3p 6 місяців тому

    This is the best backend playlist available on youtube 100%

  • @owaiskhan7607
    @owaiskhan7607 3 роки тому +2

    the best tutorials in the world , even paid course can't be this good

  • @killeraloo3247
    @killeraloo3247 Рік тому

    Thank you so much Vinod bhai. Naya naya laga hoo ek company mein, tumhari videos se kafi help milti hai. Please keep making videos. Your videos are so easy to understand and very informative as well.
    Thank you again.
    🧡 from UP.

  • @codingbaba672
    @codingbaba672 3 роки тому

    This is the best video on youtube for REST API that too in hindi. Sir your are doing great job for youth

  • @dennyage4791
    @dennyage4791 3 роки тому

    Guys sir ki videos like Karo, taki aur logo bhi recommend ho, sir ki growth rukk se gyi hai

  • @SandeepKumar-uy8pt
    @SandeepKumar-uy8pt 4 роки тому +4

    Thank you so much for your kind help please make a full project using MongoDB , Express ,React Js and Node js so that everything could be clear easily.
    Please make a full project.
    🙏🙏

  • @jaqimughal9821
    @jaqimughal9821 4 роки тому +1

    no one can teach as u awesome love from pakistan

  • @ameerhamzakhan5169
    @ameerhamzakhan5169 Рік тому

    Giving recap was good in the start of the video... 👍

  • @bhushanambhore8378
    @bhushanambhore8378 2 роки тому +1

    Appreciable work sir, as you said this video is certainly indeed helpful! Get learnt a lot from you❤

  • @Mrtech-jf9yc
    @Mrtech-jf9yc 4 роки тому +2

    First 00:00

  • @Amandeep-uc7qh
    @Amandeep-uc7qh 3 роки тому

    This playlist is so underrated bhai

  • @AkashGupta-jl9cl
    @AkashGupta-jl9cl 3 роки тому

    tum bahut kaaam krte ho thapa bhai 😍♥

  • @soniramgaur564
    @soniramgaur564 2 роки тому

    Really very nice video well explained
    I have seen so much videos but your videos are very nice. 👍

  • @natureanimals4210
    @natureanimals4210 6 місяців тому

    Love to watch your videos

  • @sandeepkumarg1889
    @sandeepkumarg1889 9 місяців тому

    great lecture bhaiya ji thank u so much

  • @usmanhasan6192
    @usmanhasan6192 2 роки тому +1

    And boom guys 💥

  • @SumitKumar-sx1oi
    @SumitKumar-sx1oi 3 роки тому

    Watching this play list and its awesome

  • @gauripachauri3626
    @gauripachauri3626 3 роки тому

    Great content and amazing teaching!! Hats off to you

  • @RajeshKumarMohanta-cc2zq
    @RajeshKumarMohanta-cc2zq Рік тому +1

    Boom Guys 💻💻

  • @TahirHussain-ep9us
    @TahirHussain-ep9us 2 роки тому

    thank you so much for this video.. lot of love

  • @AttackModeGaming
    @AttackModeGaming 2 роки тому

    very helpfull lecture bhai thank u

  • @Sunilkumar-oy6fd
    @Sunilkumar-oy6fd 4 роки тому +2

    Please make a full web application using node js , express js ,react js, mongodb so we can understand how to make complete web app using mern stack

    • @MridulBorah2014
      @MridulBorah2014 3 роки тому

      Me too waiting for the same. Also, include redux in the same project if possible.

  • @tanveerkhan627
    @tanveerkhan627 3 роки тому

    Awesome hai sir 🙏

  • @04.nehalsingh12
    @04.nehalsingh12 2 роки тому

    awesome tutorial sir

  • @hamzajaved6110
    @hamzajaved6110 2 роки тому

    speechless👌👌👌

  • @ravibarwad7138
    @ravibarwad7138 2 роки тому

    Bhai database me
    Name
    College name
    Location
    Hai
    Or isme se sirf sare names print karane ho like list chahiye to kya karna hoga

  • @rajuraj1257
    @rajuraj1257 4 роки тому

    Awesome video . Thanks 🙏😊

  • @tazimansari1243
    @tazimansari1243 3 роки тому

    Nice video sir

  • @anikety1498
    @anikety1498 3 роки тому

    Nicely explained

  • @usmanmughal5916
    @usmanmughal5916 4 роки тому +1

    Waiting for big project with user login and CRUD operation.

  • @thebishalpaul
    @thebishalpaul Рік тому +1

    minor correction: in the if else statement it sould be studentData==" " instead of (!studentData)

    • @nishantmoolya
      @nishantmoolya Рік тому

      Thanks bro, even I was getting same problem

    • @thebishalpaul
      @thebishalpaul Рік тому

      @@nishantmoolya 😊

    • @nishantmoolya
      @nishantmoolya Рік тому

      But if he uses findOne() then "!" this logic is correct

    • @thebishalpaul
      @thebishalpaul Рік тому

      @@nishantmoolya Okay did you try that. why will that work actually 🤔

  • @umeshbhati1042
    @umeshbhati1042 2 роки тому

    min property does not work as minlength which is defined only for string
    so pls provide a property like minlength for NUmbers also

  • @shubhashishbhattacharya7917
    @shubhashishbhattacharya7917 4 роки тому

    Hi @Thapa sir, I tried with the code , passing an incorrect id. But I am not able to get the 404 status code. Instead it jumping on the catch block resulting 500 status code.

  • @fahadraza7152
    @fahadraza7152 Рік тому

    I see an error when I access individual student data 'Cannot set headers after they are sent to the client'

  • @swapnilnath8761
    @swapnilnath8761 4 роки тому

    Thapa technical, please create one series for nodejs with mysql.

  • @faizansheikh358
    @faizansheikh358 3 роки тому +1

    I'm not getting the data in pretty format after entering that url
    What can I do for that?

  • @js-swift
    @js-swift 4 роки тому +1

    Sir please make video on roadmap for full stack web development from your videos
    because you made many videos on javascroipt and more like html and css
    so when i watch i don't able to understand from where i have to start
    i started searching videos on javascript but you made many playlist from where i have to start
    please this is a request that please make road map on your videos so from where i have to start
    or if you give personal coaching so please sir let me know about this even i email but you didn't reply

    • @js-swift
      @js-swift 4 роки тому

      i don't need Dil sir
      really need guidance

  • @pushkarbansal1926
    @pushkarbansal1926 3 роки тому +1

    Hey Guys,
    how to make get request using name. Its not happening like I did in id

  • @johnthapa1879
    @johnthapa1879 4 роки тому

    Thank you so much ☺️

  • @AmazonFinds-001
    @AmazonFinds-001 3 роки тому

    Sir kindly tell us how does this arrow sign appear as it doesnt appear like this in mine. I mwan like which extension are you using for it in vscode. If someone else know kindly let me know

    • @sairampatil5410
      @sairampatil5410 Рік тому

      you just need to press equals symbol then greater than symbol =>

  • @vakilsingh5086
    @vakilsingh5086 4 роки тому

    Good!!

  • @dhruv9317
    @dhruv9317 2 роки тому

    API hosting par v ek video bana do

  • @stiphenrobert4469
    @stiphenrobert4469 4 роки тому

    Iss k bad....jwt authentication v sikhao sir

  • @MrRoasi
    @MrRoasi 4 роки тому

    Good👍

  • @SubhamKumar-9009
    @SubhamKumar-9009 3 роки тому

    best video

  • @sagarprajapati3486
    @sagarprajapati3486 4 роки тому +2

    Please start shopping website using MERN plzzzz

  • @aryanbiswari2451
    @aryanbiswari2451 3 роки тому

    bhaiya host kese karte hai api ko??

  • @ROYAL-qw5ui
    @ROYAL-qw5ui Рік тому

    How can we use mongodb data in our hmtl file?

  • @GadgetMeta
    @GadgetMeta 3 роки тому

    Can I fetch the API using Fetch.then?

  • @jashanpreet832
    @jashanpreet832 3 роки тому

    Good

  • @fsociety692
    @fsociety692 3 роки тому +1

    with name its giving an error

  • @shivamsrivastava487
    @shivamsrivastava487 3 роки тому +1

    name se kaise data retrieve kare koi batade yr

    • @RaushanKumar-rz8pd
      @RaushanKumar-rz8pd 2 роки тому

      pata chala kya

    • @stream-tunes
      @stream-tunes 2 роки тому

      app.get("/studentsbyname/:name",async (req,res)=>{
      try{
      const name=req.params.name;
      let studentData=await Student.find({name});
      res.status(200).send(studentData);
      }
      catch(err)
      {
      res.status(404).send(err);
      }
      })

  • @monaligangane9637
    @monaligangane9637 2 роки тому

    how to find by users name ?we understand find by id

  • @shivamchouhan5077
    @shivamchouhan5077 4 роки тому +4

    Thapa bro, plz iss video ka code explain kar do ya at least iss par ak video bana do
    ua-cam.com/video/g-FpDQ8Eqw8/v-deo.html

  • @hamz4arif
    @hamz4arif 3 роки тому +1

    what is __v:0? it's coming always

  • @SumitKumar-sx1oi
    @SumitKumar-sx1oi 3 роки тому

    3 - 2 - 1 and boom guys... Error aa gaya 😂😂😂😂

  • @mcaddit6802
    @mcaddit6802 2 роки тому

  • @computeearning432
    @computeearning432 3 роки тому

    boom guys

  • @jivrajupadhyay887
    @jivrajupadhyay887 Рік тому

    Plz if any one has done searching via name given by /students/:name then plz suggest

    • @poojakasar4572
      @poojakasar4572 Рік тому +2

      yes.. I tried
      //find by name
      app.get('/students/:name', async(req,res) => {
      try{
      // console.log(req.params.name);
      let studName = req.params.name;
      let studentData = await Student.find({name:studName});
      // console.log(studentData)
      if(!studentData){
      res.status(404).send();
      }
      res.status(200).send(studentData);
      }catch(err){
      res.status(404).send(err);
      }
      })

    • @jivrajupadhyay887
      @jivrajupadhyay887 Рік тому

      @@poojakasar4572 Thankyou so much

    • @Akash-dv3id
      @Akash-dv3id Рік тому

      @@jivrajupadhyay887 its not working

    • @Sameer_tahir
      @Sameer_tahir Рік тому

      @@poojakasar4572 tum to khud thapa ho ! bro 🎃

  • @shocchosolutions6275
    @shocchosolutions6275 4 роки тому

    Bro please use it with react

  • @AmanSingh-wq3xn
    @AmanSingh-wq3xn 3 роки тому

    Bom video

  • @shocchosolutions6275
    @shocchosolutions6275 4 роки тому

    How to secure rest api?????????

  • @mukulsinghbisht2434
    @mukulsinghbisht2434 3 роки тому +1

    india visual data

  • @sumitsingh000
    @sumitsingh000 Рік тому +3

    app.get("/api/:name", async(req, res) =>{
    try{
    const _id = req.params.name
    const studentData= await Student.find({name: new RegExp('^' + req.params.name + '$', "i")});
    if(!userData){
    res.status(404).send();
    }else{
    res.status(201).send(studentData);
    }
    }catch(e) {res.status(401).send(e); };
    });

  • @amantiwari1163
    @amantiwari1163 3 роки тому

    Sir awesome tutorial.
    Thankyou so much.
    But a complaint from you is i dropped you a message on Instagram regarding a query but you didn't respond it till time.
    Please do check our queries too will be very thankful. 🙏

  • @kiranshinde03
    @kiranshinde03 2 роки тому +2

    solution to get the information of student with the help of name, pass the name in url
    app.get("/students/:name", async(req, res) => {
    // res.send("hello this is home page😍");
    try {
    const name = req.params.name;
    const studentData = await Student.findOne({ name });
    res.status(201).send(studentData);
    } catch (error) {
    res.status(404).send(error);
    }
    })

    • @shashankbisht7204
      @shashankbisht7204 2 роки тому

      bro error ara hai

    • @thenextgyani6040
      @thenextgyani6040 2 роки тому

      @@shashankbisht7204 comment out whole get method in which we were accessing the data by id and then run code alone it will run definetly.... Actually error is coming because the name we are providing in the url is taken as id because of this -> /:id and /:name.

    • @Akash-dv3id
      @Akash-dv3id Рік тому

      @@thenextgyani6040 bro code me id ka hai or ab name ka bhi bhut name thbhi work krta hai jab hum id ko comment out krr dete hai
      ???

    • @chetangupta2130
      @chetangupta2130 Рік тому +1

      @@thenextgyani6040 Hello, bro then what is the solution how to run both end points simultaneously in the same code.

    • @shraygupta9990
      @shraygupta9990 11 місяців тому

      @@thenextgyani6040 how can we resolve that ?
      If I am providing name then route /:name should run and when I am providing id then route /:id should run

  • @uttamsingh5465
    @uttamsingh5465 2 роки тому

    for getting the indivisual student data using id
    can we use this code?
    app.get("/students", async(req,res)=>{
    try{
    const studentsData = await Student.findById("62ecfdea5e500989bd186b72");
    res.status(201).send(studentsData);
    }catch(error){
    res.status(404).send(error);
    }
    });