An AWS Lamba REST function designed to query weathe 7E67 r information by city and country, using the OpenWeatherMap API as the Base URL.
- Base URL: https://fghdz5u6jh.execute-api.us-east-1.amazonaws.com/prod/weather
- Query URL Format: https://fghdz5u6jh.execute-api.us-east-1.amazonaws.com/prod/weather?city={city}&country_code={country_code}
- Query URL Example (Austin,Texas,USA): https://fghdz5u6jh.execute-api.us-east-1.amazonaws.com/prod/weather?city=Austin&country_code=US
- Query Reference: https://openweathermap.org/current#name
Language(s):
- Node.js
Tools:
- AWS Lambda
- AWS IAM
- openweathermap.org API
- Serverless Framework
- Mocha
Dependencies:
- babel-core: 6.26.3
- chai: 4.1.2
- chai-http: 4.0.0
- mocha: 5.2.0
- node-fetch: 2.1.2
- dotenv: 6.0.0
-- Method Request (GET):
- URL Query String Parameters (Name): city, country_code
- Required Check-box: True (Both Parameters)
-- Integration Request (GET):
- URL Query String Parameters (Name): city, country_code
- Mapped from: method.request.querystring.city, method.request.querystring.country_code
- AWSLambdaFullAccess
- AdministratorAccess
- CloudWatchLogsFullAccess
- AmazonAPIGatewayAdministrator
- Change Directory: service
- Command: npm test
- AWS Login Credentials
- Change Directory: service
- Command: npm test
- Christopher S. Powell