Reputation: 47
I've created Odoo 8 controller with certain methods which can be accessed via browser (only GETs ofcourse). But I need to pass JSON object. Hence the postman. All my postman and curl calls (including GETs) get rejected by 404, while browser calls work. Does Odoo controller require some sort of browser signature? I do notice that log reports a certain database on successful. I've not found any documentation regarding how to call controllers/methods via "thirdparty" apps like postman. Any hint will be appreciated.
Best regards
Messages (unsuccessful):
2016-09-07 20:09:59,495 5818 INFO None werkzeug: 127.0.0.1 - - [07/Sep/2016 >20:09:59] "GET /hello HTTP/1.1" 404 -
and successful
db_test werkzeug: 127.0.0.1 - - [07/Sep/2016 20:11:24] "GET /hello HTTP/1.1" 200 -
Upvotes: 0
Views: 883
Reputation: 488
Do you have multiple databases on your Odoo instance?
If so, then postman doesn't know which database to do the get request on.
To resolve this, go into you openerp-server conf file and put the following parameter in:
dbfitler = db_test
Where db_test
is the name of the database.
Upvotes: 1