Open
Description
Current problem
When I created an endpoint like:
@online.route("hello_world")
def hello_world():
message = {
'message': 'Hello World'
}
return message
And called it without body, the response was e 400 bad request:
This happens because the following line:
pyCarol/pycarol/app/online_api.py
Line 107 in 14cc9b7
It calls flask.request.json()
:
If I add a body to the request, it works normally:
What's expected
When making a GET call to an endpoint, body should not be required.
Metadata
Metadata
Assignees
Labels
No labels