Build a HTTP API using AWS Lambda and API Gateway

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

КОМЕНТАРІ • 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.

  • @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

  • @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.