Get Instant Help From 5000+ Experts For
question

Writing: Get your essay and assignment written from scratch by PhD expert

Rewriting: Paraphrase or rewrite your friend's essay with similar meaning at reduced cost

Editing:Proofread your work by experts and improve grade at Lowest cost

And Improve Your Grades
myassignmenthelp.com
loader
Phone no. Missing!

Enter phone no. to receive critical updates and urgent messages !

Attach file

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Guaranteed Higher Grade!
Free Quote
wave
Create a REST API using AWS API Gateway and Lambda

Instructions for creating the REST API

In this homework, you will create a REST APIs using API Gateway. The API will use Lambda as the backend service. You are welcome to use other services we have covered for example S3 and DynamoDB to store the data but you may also just use methods and datasets within your Lambda code.

Please get started early as this assignment will take you longer than you think. 

1.Using your AWS Educate classroom environment, create an REST API with a Lambda backend service that provides the results of the last 5 games in a specific sport for a specific team entered by the user. Details regarding the implementation are as follows: 

a.The API should provide data for at least 3 different professional or college sports (e.g. Baseball, Football, Basketball) 

b.The API should provide data for at last 5 different teams for each of the 3 sports. This means you will have data for at least 15 different recent sporting events. 

c.The data needs to be real and current. (Hint: all major sports have sites providing the most recent scores for all of their teams.)

d.The API will use a Get Query String as input containing the Sports and Teams name. (e.g. ?sport=baseball&team=astros). You decide the way you want to refer to a team and a sport. For example Houston versus Astros, Baltimore versus Orioles.

e.If a sport is not present in your dataset, just reply "Sport was not found”. Then return a list of all of your possible sports. For example, “Soccer was not found. Please try one of these:

Basketball

Football

Hockey”

If a team is not present in your dataset, just reply "Team was not found”. Then return a list of all of your possible team for the sport selected. For example,

“Packers was not found for the Football sport. Please try one of these:

Ravens

Patriots

Chargers

Browns

Bills

Upon successful entry of the Sport and the Team name, the API should return the last 5 games, if the team lost or won and the date of the game. For example, if Baseball and Astros were input, the API response might be the following: 

“For the sport of baseball the Astros last 5 game results include:

Astros beat Rays 6-1 on Oct 10, 2019

Astros lose to Rays 1-4 on Oct 8, 2019

Astros lose to Rays 3-10 on Oct 7, 2019

Astros beat Rays 3-1 on Oct 5, 2019

Astros beat Rays 6-2 on Oct 4, 2019

a.The Lambda function should be written in Python 3.X. 

b.The Lambda function should be modular where functions are used to maximize code reuse and efficiency 

c.Use data structures to store the datasets, or read the data in from an S3 or DynamoDB AWS resource. (The latter is much more advanced but encouraged if you really want to demonstrate mastery of this material.)

2.Describe the API including detailed descriptions and screen captures of your API Resources and Stage. Discuss how and show results of your testing the Lambda function and resulting API that uses the Lambda function backend. Include your API Endpoint URL to be run by the professor in your documentation.

support
close