Last active
March 8, 2018 13:34
-
-
Save brachi-wernick/2c52e3287a5d7e8a6c39118676db4af0 to your computer and use it in GitHub Desktop.
AddMethodRequestWithModelName
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", inputModelName); | |
}}; | |
gateway.putMethod(new PutMethodRequest().withResourceId(resourceId) | |
.withRestApiId(targetRestApiId) | |
.withAuthorizationType("NONE") | |
.withRequestModels(modelName) | |
.withHttpMethod("POST")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment