Skip to content

Instantly share code, notes, and snippets.

@brachi-wernick
Last active March 8, 2018 13:33
Show Gist options
  • Save brachi-wernick/14d0575173313b975b375c2e7bd84c4c to your computer and use it in GitHub Desktop.
Save brachi-wernick/14d0575173313b975b375c2e7bd84c4c to your computer and use it in GitHub Desktop.
CreateAwsInputModel.java
/* our model variable should include some json schema model like
{
"type":"object",
"properties":{
"a":{"type":"integer"},
"b":{"type":"integer"},
"op":{"type":"string"}
},
"title":"Input"
}
*/
gateway.createModel(new CreateModelRequest()
.withSchema(model)
.withContentType("application/json")
.withName(modelName)
.withRestApiId(targetRestApi.getId())).getId();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment