跳至内容
菜单
此问题已终结
4827 查看

Postman API

Step 1: User 1 Post:-
http://localhost:8144/auth
{
"params": {
"login": "api@test.com",
"password": "test",
"db": "test"
}
}

Step 2: User 2 Post:-
http://localhost:8144/auth
{
"params": {
"login": "admin@test.com",
"password": "admin",
"db": "test"
}
}


How to get data from user1? and user2?
Headers passed X-Openerp-Session-Id : user1 session Id
(OR) user2 session Id


And run get model api
http://localhost:8144/api/res.partner?query={id, name}

X-Openerp-Session-Id : user1 session Id

But get model API always works last auth API user 2 cookies session ID data (user 2)


If try to user 1 cookies session ID data no get output session expired error facing,

How to get model data with particular user? and If user or session_id not passed then not get any output.

Always postman cookies store auth api last user cookies ID and read data from this user.

How to read data from previous auth api user?

形象
丢弃
相关帖文 回复 查看 活动
1
1月 23
1727
0
9月 21
2042
1
3月 21
4479
3
1月 25
3368
0
3月 23
113