Skip to content

Instantly share code, notes, and snippets.

@brachi-wernick
Last active March 8, 2018 13:34
Show Gist options
  • Save brachi-wernick/2c52e3287a5d7e8a6c39118676db4af0 to your computer and use it in GitHub Desktop.
Save brachi-wernick/2c52e3287a5d7e8a6c39118676db4af0 to your computer and use it in GitHub Desktop.
AddMethodRequestWithModelName
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