Skip to content

Instantly share code, notes, and snippets.

@weburnit
Created January 20, 2019 09:12
Show Gist options
  • Save weburnit/d9c6319f081f97db0cd56cc013ce6607 to your computer and use it in GitHub Desktop.
Save weburnit/d9c6319f081f97db0cd56cc013ce6607 to your computer and use it in GitHub Desktop.
SchemaLess
public class ModellingAPI {
@Autowired
SchemaService schemaService;
@RequestMapping(value = "/model", consumes = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.POST)
@ResponseBody
public Modelling createModelling(@Valid @RequestBody JsonNode data)
throws UnknownObjectException {
return schemaService.createModel(data);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment