간단한 설정으로 REST API (Lambda 및 API Gateway)를 만들려고했습니다.
2812 단어 AWSLambdaAPIGateway
목적
우선, 추가적인 설정은 제외하고 매우 간단하게 REST API(Lambda+API Gateway)를 작성한다.
따라서 API 생성의 전체 흐름을 잡아
작업 흐름
① Lambda에서 "함수 : getTextData"의 작성
→리턴은 "{"statusCode": 200, "body": "\"Hello from LambdaMethod:getTextData\""}"
②API Gateway에서 Lambda를 관련지어 API를 작성
① Lambda에서 "함수 : getTextData"의 작성
1.Lambda 함수 설정

※런타임은, python이나 node.js등에서 선택합니다.
2. getTextData 함수에 파이썬 코드 작성

※ 핸들러로부터 프로그램이 실행된다(lambda_function.py의 lambda_hundler 함수)
②API Gateway에서 Lambda를 관련지어 API를 작성
1.API 설정

▼메모
· Swagger
REST Full API의 인터페이스 형식. 해외에서는 디팩트 스탠다드
(Open API Initiative라는 단체가 추진)
・엔드포인트 타입
리전(클라이언트가 리전에 집중하는 경우)
or edge(클라이언트가 분산된 경우)
2. REST API 리소스(URL) 및 http 메소드(GET) 설정

예)
----------------
GET ht tp // // x. 이 m / st
----------------
리소스→test
메소드 → GET ※POST/GET/DELETE 등의 http 메소드
3. API에서 Lambda 함수를 실행하기위한 연결 설정

4.API 동작 확인(테스트 실행)

5.http 액세스할 수 있도록 배포

6. API 실행 확인 (브라우저에서 URL을 두드리고 출력을 확인!)

이것으로, 심플 설정으로 REST API 만들어 보았다,는 완료입니다! 간단 (*´ω`)
Reference
이 문제에 관하여(간단한 설정으로 REST API (Lambda 및 API Gateway)를 만들려고했습니다.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/t20190127/items/1cf8ea6d9c24285550ad
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
① Lambda에서 "함수 : getTextData"의 작성
→리턴은 "{"statusCode": 200, "body": "\"Hello from LambdaMethod:getTextData\""}"
②API Gateway에서 Lambda를 관련지어 API를 작성
① Lambda에서 "함수 : getTextData"의 작성
1.Lambda 함수 설정

※런타임은, python이나 node.js등에서 선택합니다.
2. getTextData 함수에 파이썬 코드 작성

※ 핸들러로부터 프로그램이 실행된다(lambda_function.py의 lambda_hundler 함수)
②API Gateway에서 Lambda를 관련지어 API를 작성
1.API 설정

▼메모
· Swagger
REST Full API의 인터페이스 형식. 해외에서는 디팩트 스탠다드
(Open API Initiative라는 단체가 추진)
・엔드포인트 타입
리전(클라이언트가 리전에 집중하는 경우)
or edge(클라이언트가 분산된 경우)
2. REST API 리소스(URL) 및 http 메소드(GET) 설정

예)
----------------
GET ht tp // // x. 이 m / st
----------------
리소스→test
메소드 → GET ※POST/GET/DELETE 등의 http 메소드
3. API에서 Lambda 함수를 실행하기위한 연결 설정

4.API 동작 확인(테스트 실행)

5.http 액세스할 수 있도록 배포

6. API 실행 확인 (브라우저에서 URL을 두드리고 출력을 확인!)

이것으로, 심플 설정으로 REST API 만들어 보았다,는 완료입니다! 간단 (*´ω`)
Reference
이 문제에 관하여(간단한 설정으로 REST API (Lambda 및 API Gateway)를 만들려고했습니다.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/t20190127/items/1cf8ea6d9c24285550ad
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
1.API 설정

▼메모
· Swagger
REST Full API의 인터페이스 형식. 해외에서는 디팩트 스탠다드
(Open API Initiative라는 단체가 추진)
・엔드포인트 타입
리전(클라이언트가 리전에 집중하는 경우)
or edge(클라이언트가 분산된 경우)
2. REST API 리소스(URL) 및 http 메소드(GET) 설정

예)
----------------
GET ht tp // // x. 이 m / st
----------------
리소스→test
메소드 → GET ※POST/GET/DELETE 등의 http 메소드
3. API에서 Lambda 함수를 실행하기위한 연결 설정

4.API 동작 확인(테스트 실행)

5.http 액세스할 수 있도록 배포

6. API 실행 확인 (브라우저에서 URL을 두드리고 출력을 확인!)

이것으로, 심플 설정으로 REST API 만들어 보았다,는 완료입니다! 간단 (*´ω`)
Reference
이 문제에 관하여(간단한 설정으로 REST API (Lambda 및 API Gateway)를 만들려고했습니다.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/t20190127/items/1cf8ea6d9c24285550ad텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)