How to Proxy API requests to your legacy endpoints with Serverless

Поделиться
HTML-код
  • Опубликовано: 3 дек 2024

Комментарии • 11

  • @CompleteCoding
    @CompleteCoding  5 лет назад +3

    I've previously used this method to do a few cool things.
    The first was to join a new service provider's API into my own. I had an existing app and there was a new service provider that we wanted to use. Instead of having to create 20 lambdas to make a request to each of the 20 endpoints, I did exactly what I did in the video to pull the endpoints into my API.
    I've also used this to combine a few external APIs I was using into a single API. This meant I didn't have to remember 4 separate URLs which saves loads of time when I was writing my front end code.
    What projects would you use this in?

  • @shadmanmartinpiyal4057
    @shadmanmartinpiyal4057 3 года назад

    Excellent, this was pretty fun!

    • @CompleteCoding
      @CompleteCoding  3 года назад

      Hey, thanks! It can be really useful if you're ever migrating from a traditional system (servers) to serverless.

  • @ibrohimbahromov1931
    @ibrohimbahromov1931 2 года назад

    Awesome video!
    How do I pass Authorization token through serverless to en existing api server?

    • @CompleteCoding
      @CompleteCoding  2 года назад +1

      You can use header mappings to pass the correct headers

  • @yasirkaram
    @yasirkaram 4 года назад

    Hi Sam, with this amazing series, would it be possible to get better API keys and plan payments with Stripes then.

    • @CompleteCoding
      @CompleteCoding  4 года назад

      Yes, you could allow users to sign up to one of three payment plans in stripe. based on which payment plan they chose, you can generate them an API key that has a different level of resources.

  • @fenixw05
    @fenixw05 4 года назад

    mmm for one reason , sls do not allow me to use the "uri" param :/

    • @CompleteCoding
      @CompleteCoding  4 года назад

      At which point are you trying to use the uri?

  • @tallitvak5325
    @tallitvak5325 4 года назад

    you are amazing man!!!