How to access my server from outside (building REST API)?
I'm trying to build REST API, but I run into strange behavior of my server. So I have controller, let's say:
# -*- coding: utf-8 -*-
from odoo import http
from odoo.http import request
@http.route(["/hello"], type='http', auth='public')
Which renders Hello if I access site (http://localhost:8069/hello) from browser. But if I try to access same url from let's say curl or private session in browser I'm getting error 404.
In server log only difference is that when I access site from browser I get:
2017-06-18 19:02:55,541 6786 INFO hello werkzeug: 127.0.0.1 - - [18/Jun/2017 19:02:55] "GET /hello HTTP/1.1" 200 -
An from curl I get:
2017-06-18 19:02:55,541 6786 INFO ? werkzeug: 127.0.0.1 - - [18/Jun/2017 19:02:55] "GET /hello HTTP/1.1" 200 -
Where hello is name of a database
I tried to provide different attributes to decorator like website=True/False, auth='user/public/none' but with no effect. Can you guys help me, what am I doing wrong?