Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1495 Lượt xem

Hello

I'm new, and my main interest is accounting and API access for this module.

I've been given access, and I already have my one-day token.

Since it's a test, I'm not sure if it's functional.

Even so, reading https://www.odoo.com/documentation/18.0/es/developer/reference/external_api.html?highlight=api, I can't find something as basic as knowing what the API URL is.

I found a Postman collection, but it doesn't seem official.

The case is:

  1. For the endpoint, I use the URL of my deployment aicha-XXXXXX-sl.odoo.com/web/session/authenticate In the body with raw

{ "jsonrpc": "2.0", "params": { "db": "aicha-XXXXXX-sl", "login": "administracion@mydomain.es", "password": "PasswordForAcces" } }

And I configure the one-day token in X-API-Key which is added to the header.

And boom... I get a 200

{ "jsonrpc": "2.0", "id": null, "result": { "uid": null } }

I'm certainly lost with the documentation.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,
You can refer to this video explaining the same:  Authentication
Thanks

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
Postman Api Đã xử lý
2
thg 11 22
8909
1
thg 8 25
397
2
thg 7 25
2833
3
thg 7 25
641
1
thg 6 25
2109