Skip to Content
मेन्यू
This question has been flagged
1 Reply
3363 Views

Hi.

Is it possible for a custom module to listen on a specific URL  (eg www.myodooserver.com/listentothis) for post requests (from another API)  or would this have to be done via nginx and another python script?

Avatar
Discard
Best Answer

Yes, you can do it by creating an http.Controller class, like:

from openerp import http

class Home(http.Controller):

@http.route('/listentothis', type='http', auth="none")

def index(self):

return "hello world"

Know more read here:

http://www.odoo.com/documentation/9.0/reference/http.html

Avatar
Discard
Related Posts Replies Views Activity
0
सित॰ 23
2078
0
सित॰ 23
1823
2
जून 25
11305
6
अक्तू॰ 23
22159
3
मार्च 24
9566