Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to implement JSON REST webservice?

By
Srinivas
on 10/6/14, 4:56 AM 735 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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 10/6/14, 4:56 AM
Seen: 735 times
Last updated: 7/10/16, 5:32 AM