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?