Add experimental support for the JSON-RPC protocol (new connector)

Bug #1100346 reported by Sébastien Alix
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OERPLib
In Progress
High
Unassigned

Bug Description

Create a new connector and service (into the 'oerplib.rpc' package) supporting JSON-RPC requests.
URL used by OpenERP : http://{server}:{port}/jsonrpc

Revision history for this message
Sébastien Alix (sebastien-alix) wrote :

Look at 'web/static/src/js/core.js:

        var payload = {
            jsonrpc: '2.0',
            method: 'call',
            params: params,
            id: _.uniqueId('r')
        };
        ...
        var request = this.rpc_function(url, payload).then(...)

Make HTTP requests on the 'http://{server}:{port}/jsonrpc' URL with these JSON data.

Revision history for this message
Sébastien Alix (sebastien-alix) wrote :

See source code of OpenERP (v6.1 and v7.0):

./openerp/wsgi/core.py:61:JSON_RPC_PATH = '/openerp/jsonrpc'
./openerp/wsgi/core.py:62:JSON_RPC_PATH_1 = '/openerp/jsonrpc/1'

but 'JSON_RPC_PATH' is never used.

Changed in oerplib:
milestone: 0.7 → none
Changed in oerplib:
status: New → In Progress
milestone: none → 0.8
summary: - Add support for the JSON-RPC protocol
+ Add support for the JSON-RPC protocol (new connector)
summary: - Add support for the JSON-RPC protocol (new connector)
+ Add experimental support for the JSON-RPC protocol (new connector)
Changed in oerplib:
status: In Progress → Fix Released
status: Fix Released → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.