Last active
March 8, 2018 13:35
-
-
Save brachi-wernick/d24bdb187a1f5931c8fc1cba92535e67 to your computer and use it in GitHub Desktop.
AddAwsGatewayResourceMethodResponse.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Map<String, String> modelName = new HashMap<String, String>() {{ | |
put("application/json", outputModelName); | |
}}; | |
//rootResource was found previously | |
gateway.putMethodResponse(new PutMethodResponseRequest() | |
.withHttpMethod("POST") | |
.withResponseModels(modelName) | |
.withRestApiId(targetRestApiId) | |
.withResourceId(rootResource) | |
.withStatusCode("200")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment