Last active
March 8, 2018 13:33
-
-
Save brachi-wernick/14d0575173313b975b375c2e7bd84c4c to your computer and use it in GitHub Desktop.
CreateAwsInputModel.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
/* 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