lucasbmiguel opened a new pull request #56:
URL: https://github.com/apache/incubator-marvin/pull/56
Currently, anything that's returned from the engine predictor.py `execute`
method, during a POST to /predictor, will be converted to a string. This
request introduces the ability for engines to return complex JSON types on HTTP
requests for /predictor.
#### How to test:
- Create a new engine and modify the `execute` method of your predictor.py
to return a dict with multiple fields.
- Start your engine http server and perform a client POST request to the
/predictor endpoint
#### Expected result
You should see a response that contains a JSON inside the "result" field of
the top-level response.
Similar to:
```
{
"result": {
"myPrediction": "predictedValue",
"additionalInfo": "toCarry",
"justANumber": 9
}
}
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]