[REF] service: A new openerp.service.rpc decorator is provided to replace the ExportS...
[odoo/odoo.git] / doc / routing.rst
1 .. _routing:
2
3 Routing
4 =======
5
6 The OpenERP framework, as an HTTP server, serves a few hard-coded URLs
7 (``models``, ``db``, ...) to expose RPC endpoints. When running the web addons
8 (which is almost always the case), it also serves URLs without them being RPC
9 endpoints.
10
11 In older version of OpenERP, adding RPC endpoints was done by subclassing the
12 ``openerp.netsvc.ExportService`` class. Adding WSGI handlers was done by
13 registering them with the ``openerp.wsgi.register_wsgi_handler()`` function.
14
15 Starting with OpenERP 7.1, exposing a new arbitrary WSGI handler is done with
16 the ``openerp.service.handler`` decorator while adding an RPC endpoint is done
17 with the ``openerp.service.rpc`` decorator.
18