Hello!
How to make Controller with http in response and json in request?
Exists some service with webhooks. Service send json and receive json.
@route type=http rise error on request, becouse income request have json in content-type.
@route type=json make possible do every thing but response. Odoo make jsonrpc response like this:
{"jsonrpc": "2.0", "result": {myjson}}
but for service I need response like this:
{myjson}
I'm try to make decorator @myroute, but find no way to disable error when type=http or change result when type=json
How I can override JsonResponse._json_response() ?
Thank you for any advice!