Загрузка страницы

Reference Your API Gateway URL from within Your Code - Serverless URL Trick

If you've wanted to be able to use the URL of your service before you've deployed it then this is the video for you.

Code: https://gist.github.com/SamWSoftware/381eaf441fc6435f1466314b1eedaa72

apiURLBase: { 'Fn::Join': [ '', [ 'https://', { 'Ref': 'ApiGatewayRestApi' }, '.execute-api.${self:provider.region}.amazonaws.com/${self:provider.stage}' ] ] }
It allows you to call other endpoints on your service or pass your URL in the body of requests to other services. This can be really powerful.

Видео Reference Your API Gateway URL from within Your Code - Serverless URL Trick канала Complete Coding
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
29 октября 2020 г. 12:30:01
00:09:32
Яндекс.Метрика