This question has been flagged
5128 Views

Hi,

I need to have below functionality

a) Call service URL which resides on core or custom module within openerp

b) Process service

c) Write response back to caller

for example:

POST URL http://localhost:9696/openerp/authUser

Request:
{
    "userName": "Raj",
    "password": "raj@#147",
}

Response:
{
    "status": 0,
    "message": "User validated successfully",
}

Please help if there exist any solution or best way to implement

Few queries:

a) In other programming API's we do extract service part for example /service/authUser, then process service with request data by parsing and write response, how do we re-direct or route to service processing code in openerp?

b) As i have seen we can write a simple python service client

https://doc.odoo.com/trunk/web/rpc/

https://doc.odoo.com/6.1/developer/12_api/#python

Thanks,

Srinivas

Avatar
Discard