@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"}}
@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!
Registrar-se| Related Posts | Respostes | Vistes | Activitat | |
|---|---|---|---|---|
|
0
de gen. 23
|
3972 | |||
|
2
de set. 20
|
14272 | |||
|
2
d’ag. 25
|
5465 | |||
|
Controller not working
Solved
|
2
de juny 25
|
3694 | ||
|
3
de juny 24
|
6093 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.