Skip to content

Json object support.1#5

Open
matt2000 wants to merge 7 commits into
trustedanalytics:masterfrom
matt2000:JSON-object-support.1
Open

Json object support.1#5
matt2000 wants to merge 7 commits into
trustedanalytics:masterfrom
matt2000:JSON-object-support.1

Conversation

@matt2000

Copy link
Copy Markdown

Replaces PR #2

@matt2000 matt2000 mentioned this pull request Jun 21, 2016
@matt2000

Copy link
Copy Markdown
Author

Any requirements not met to get this merged?

@dpuzio dpuzio self-assigned this Jul 15, 2016
@dpuzio

dpuzio commented Jul 15, 2016

Copy link
Copy Markdown

Sorry for the delayed response. I've just started to review this PR, so please expect some comments over the next few hours.

@dpuzio

dpuzio commented Jul 15, 2016

Copy link
Copy Markdown

Some general comments:

  1. please, conform to google-styleguide e.g. the line length is too short
  2. please, rebase to the current master

*/
@RequestMapping(method = RequestMethod.POST, value = POST_H2O_MODEL_URL,
produces = MediaType.APPLICATION_JSON_VALUE, consumes = "application/json")
public String[] score(@RequestBody(required = true) HashMap<String, Object> data) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Controller returns 200 OK when given an empty input '{}'. It should return 400 Bad Request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants