콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
5247 화면

Hello guys;

I am trying to build rest api from controllers I started to test in post man but it gives me 404 error ,but it works in browers here is my sample code:


from odoo import http

class frfr(http.Controller):
@http.route('/hello/',auth='public',type='json',csrf=False,method=['GET'])
def hello(self, **kwargs):
return "hello world"


아바타
취소
베스트 답변

Hi,

Do you have multiple database's in the odoo instance ? If yes, try by keeping single db and see if it works.

Either you can set db filter or db name in conf file.

Thanks

아바타
취소
베스트 답변

Hi,
setting db_name in configuration file is working. Strange but working


아바타
취소
관련 게시물 답글 화면 활동
2
9월 22
2192
0
1월 22
465
3
11월 21
3819
4
12월 24
18210
1
10월 21
9513