Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit fa7f1f2

Browse files
author
Sunil Mallya
committed
add new API Gateway screenshots
1 parent d994754 commit fa7f1f2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+2
-14769
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,8 @@ create the API Gateway and Lambda resources
117117

118118
More on [Intergration Requests](http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-mapping-template-reference.html).
119119
`$input.params()` parse the request object for the corresponding variable and allows the mapping template to build a JSON object.
120-
[Screenshot](https://s3-us-west-2.amazonaws.com/mauerbac-hosting/intergration.png)
120+
[Screenshot](https://s3.amazonaws.com/smallya-useast-1/twilio-apig/integration_request.png)
121121
5. Let's ensure the response is correct. Twilio requires valid XML. Change the response model for 200 to Content-type: `application/xml`. Leave models empty.
122-
[Screenshot](https://s3-us-west-2.amazonaws.com/mauerbac-hosting/response.png)
123122
6. Lambda cannot return proper XML, so API Gateway needs to build this. This is done in Integration response as another mapping template. This time we want to create Content-type: application/xml and template:
124123

125124
```
@@ -133,7 +132,7 @@ create the API Gateway and Lambda resources
133132
</Message>
134133
</Response>
135134
```
136-
Our Lambda function solely returns a string of the SMS body. Here we build the XML object and use `$inputRoot` as the string. [Screenshot](https://s3-us-west-2.amazonaws.com/mauerbac-hosting/responseModel.png)
135+
Our Lambda function solely returns a string of the SMS body. Here we build the XML object and use `$inputRoot` as the string.
137136
7. Now let's deploy this API, so we can test it! Click the Deploy API button.
138137

139138
###Connecting the dots & Testing

0 commit comments

Comments
 (0)