Home
Chat
This website collects cookies to deliver better user experience
OK
How to create a Mock response in APIGateway
How to create a Mock response in APIGateway
Goal
To return a static html response for your website.
Steps
a. First create an API endpoint, choose below type.
b. Select Regional.
c. Create a resource, for example sureroute-test-object.html and create method GET, then Click on GET.
d. Select the Integration Request and select Mock.
e. In the method response, change the default reponse body content type to text/html.
f. In the Integration Response, replace the Mapping Template with Content-Type text/html.
g. Then add the html file into it.
h. Then Select Action Button → Deploy API, create a new Deployment stage.
i. Then go to Custom domain names → → API mapping tab → Configure API mapping.
j. Create a new API mapping and fill in the below.
h. Thats it, now test the link and you will get result similar to below !
34
0
Tags:
Aws
Apigateway
Html
Static
Related Posts
loading...
loading...
loading...
loading...
loading...
loading...
loading...
loading...
Post Comment
Show Comments
28 Carousel, Slider Library For Developer
How I passed the AWS Certified Cloud Practitioner Exam?
How to schedule ECS Services in AWS easily
Aprendiendo de los Grandes: El feed de Instagram
How to add Images to Our page ?
How to create direct messages like on Twitter with the TalkJS Chat API
Scaling AWS EC2 Instances
How I created a google forms clone using AWS