@http.route('/test_url/print_json', auth='public', type='json', cors="*", csrf=False)
def print_json(self, **post):
return {"msg":"ok"}
I expect to get JSON {"msg":"ok"}
but actually going to return {"jsonrpc":"2.0","id":null,"result":{"msg":"ok"}}
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
@http.route('/test_url/print_json', auth='public', type='json', cors="*", csrf=False)
def print_json(self, **post):
return {"msg":"ok"}
I expect to get JSON {"msg":"ok"}
but actually going to return {"jsonrpc":"2.0","id":null,"result":{"msg":"ok"}}
Create an account today to enjoy exclusive features and engage with our awesome community!
РегистрацияRelated Posts | Ответы | Просмотры | Активность | |
---|---|---|---|---|
|
0
янв. 23
|
1833 | ||
|
2
сент. 20
|
11154 | ||
|
3
июн. 24
|
2620 | ||
|
4
мая 24
|
11345 | ||
|
0
апр. 24
|
1352 |