Build a HTTP API using AWS Lambda and API Gateway

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ส.ค. 2024
  • In this video I explain HTTP API in the AWS Console and then I show you how to develop your own HTTP API with AWS SAM going through each step of creating the HTTP API from scratch and deploying it to AWS.
    Links I mention in the video:
    Previous video with installation walkthrough:
    • Develop Lambdas Locall...
    template.yml I used for the demo:
    gist.github.com/JonnyDavies/4...
    app.js I used for the demo:
    gist.github.com/JonnyDavies/d...
    00:00 Intro
    00:15 HTTP API AWS Console
    09:16 HTTP API AWS SAM
    #AWS #HTTP #ApiGateway #Lambda #REST

ความคิดเห็น • 17

  • @ricksegalCanada
    @ricksegalCanada 5 หลายเดือนก่อน

    I find it nothing short of hilarious that there are HOURS in certain videos that accomplish what you've done in 8 minutes (8:19 to be precise about it). I'm not even done w/this 24 minute video and I'm lightyears ahead in my coding project. Well done, Jonathan, truly. And for bonus points, you kicked GPT's arse in explaining this concept.

    • @Jonathan.Davies
      @Jonathan.Davies  5 หลายเดือนก่อน

      Thanks mate, you’re too kind 👍

  • @EddieMao
    @EddieMao 5 หลายเดือนก่อน

    great great video, thanks a lot!

  • @gork413
    @gork413 ปีที่แล้ว +1

    Thanks for the tutorial, helped a lot.

  • @AhmedGadd
    @AhmedGadd ปีที่แล้ว

    Helpful tutorial. Thanks.

    • @Jonathan.Davies
      @Jonathan.Davies  ปีที่แล้ว +1

      You’re welcome Ahmed. Thanks for watching 👍

  • @goodmanmont9723
    @goodmanmont9723 ปีที่แล้ว

    do more bro, great video

    • @Jonathan.Davies
      @Jonathan.Davies  ปีที่แล้ว +1

      Appreciate that Goodman, more on the way 👍

  • @IasonOrlandosOx
    @IasonOrlandosOx ปีที่แล้ว

    T hanks ! keep up the good work

  • @aravind4444
    @aravind4444 ปีที่แล้ว

    good video

  • @prathimaalapati4784
    @prathimaalapati4784 ปีที่แล้ว

    Thanks for this video. This is definitely helpful for my baby steps. Am trying to have a post call using http URI as backend rather than lambda how can i pass the body of the request ?

    • @Jonathan.Davies
      @Jonathan.Davies  ปีที่แล้ว

      Glad you found it helpful Prathima. Do you mean making an a POST call to a normal API or making a POST call to Lambda?
      For a POST to a normal API - you do something like this:
      Using the JavaScript Fetch API - define some request options (just an object) that has a body within it - just like this …
      const requestOptions = {
      method: 'POST',
      headers: { 'Content-Type': 'application/json' },
      body: JSON.stringify({ title: 'Fetch POST Request Example' })
      };
      Then make your call - with the API URL and the the requestOptions object we defined above (that contains the body)
      const response = fetch('path.to.your.api', requestOptions);
      Very rough example but hopefully helped a bit 👍

    • @prathimaalapati4784
      @prathimaalapati4784 ปีที่แล้ว

      @@Jonathan.Davies Cant believe you responded so quickly :-) Am exploring if there is a way to send body when HTTP is chosen as the option and in Manage Integrations ?

  • @chgian77
    @chgian77 ปีที่แล้ว

    sorry, but I lost you when you switched the windows. For others perhaps it is obvious, but for me who still learns not so much.

    • @Jonathan.Davies
      @Jonathan.Davies  ปีที่แล้ว

      @chgian77 that's fair enough, it's good that you're learning. Keep up the good work.