Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Api Get model data with particular user only #68

Open
prakashjain opened this issue Jul 20, 2021 · 0 comments
Open

Api Get model data with particular user only #68

prakashjain opened this issue Jul 20, 2021 · 0 comments

Comments

@prakashjain
Copy link

Postman API

Step 1: User 1 Post:-
http://localhost:8144/auth
{
"params": {
"login": "[email protected]",
"password": "test",
"db": "test"
}
}

Step 2: User 2 Post:-
http://localhost:8144/auth
{
"params": {
"login": "[email protected]",
"password": "admin",
"db": "test"
}
}

How to get data from user1? and user2?
Headers passed X-Openerp-Session-Id : user1 session Id
X-Openerp-Session-Id : 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?
If user or session_id not passed then not get any output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant