The first request to define is the GET request. A GET request doesn't have much to pass in but it certainly needs to return the data correctly. Learn how to define a model to specify what data to be returned. This can be either the full text of the response or translated to another format. Which is needed depends on the requirements.
- [Instructor] Now that we've created our API…for our Lambda function, let's start defining the methods.…So in the API gateway, we're gonna create the GET method…to be able to fetch a single item from the database.…So we'll create that GET method and use the model for it.…We have to define that model, which we'll do in this video.…Then, we map the value that we get on the URL…for the individual item we want to fetch.…We massage that into data that we're gonna pass…to the Lambda function to return the item that we specify.…
Again we're gonna do the round trip,…going from the client, through the method…and integration request, and back from the server.…In the method request, we'll see the value…that's being passed in for the item we want to fetch.…That's from the request path.…And then in the integration request,…we'll map the value passed in…to the value that we want to pass to the Lambda function.…Then once the Lambda function's done…and we get the data back, we want to do the reverse process.…So we'll set the model and the method response,…
Author
Released
8/24/2018- Creating APIs with the AWS API Gateway
- Using GET, DELETE, and POST methods and models
- Generating SDKs
- Creating DynamoDB tables
- Creating Lambda functions
- Creating APIs for Lambda
- Generating the client API with Swagger
Skill Level Intermediate
Duration
Views
Related Courses
-
Deploying Docker to AWS
with Arthur Ulfeldt1h 29m Intermediate -
Planning an AWS Solution
with Ryan Spence1h 13m Intermediate -
iOS Development with Firebase
with Bear Cahill1h 46m Intermediate -
Building iOS Apps with AWS Mobile
with Bear Cahill1h 48m Intermediate
-
Introduction
-
Easy RESTful API creation1m 18s
-
-
1. Getting Started with API Gateway
-
AWS components intro3m 15s
-
Create an API in API Gateway2m 58s
-
Create a mock GET API method4m 22s
-
-
2. API Gateway to HTTP Service
-
DELETE method and model5m 17s
-
POST method and model7m 43s
-
Generate an SDK with Swagger2m 31s
-
iOS client SDK generation5m 12s
-
3. DynamoDB and Lambda
-
Create a DynamoDB table2m 16s
-
Create a Lambda function3m 24s
-
Test POST to table2m 54s
-
Test GET from table2m 12s
-
-
4. API Gateway to Lambda
-
Create an API for Lambda2m 23s
-
Create a GET request7m 15s
-
Create a DELETE request2m 14s
-
Create a POST request4m 5s
-
Create a PUT request4m 20s
-
-
5. Client SDK from Swagger
-
Review the creation process2m 26s
-
-
Conclusion
-
Next steps40s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Create a GET request