You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to remove a user from a group by restapi. According to the doc , it needs groups_user_href
Thanks to ggainey 's help,(details of my question) , I know now it is constructed by one part of user-href after the API ROOT appended to the group-href
Eg:
user_href => /pulp/api/v3/users/2/
group_href => /pulp/api/v3/groups/1/
then
groups_user_href => /pulp/api/v3/groups/1/users/2/
I am not sure if my demand to add groups_user_href info is suitable or not, because maybe some usecase needs user_href when doing groups:users/list users query
Or maybe can add explanation/example in the doc to explain how to constructed groups_user_href?
thanks
The text was updated successfully, but these errors were encountered:
I am not sure if my demand to add groups_user_href info is suitable or not, because maybe some usecase needs user_href when doing groups:users/list users query
I don't think there should be exclusiveuser_ref or group_user_href. We could just have both:
$ pulp group user list --group test-group
[
{
"username": "testuser",
"pulp_href": "/pulp/api/v3/users/2/",
"group_user_href": "/pulp/api/v3/groups/1/users/2/"
}
]
Anyway, it should be useful to improve the REST Api docs (on the endpoints that uses group_user_href) by:
describing how group_user_href composed
linking to this group/user list query, if we add group_user_href to the response.
Hello,
I try to remove a user from a group by restapi. According to the doc , it needs
groups_user_href
Thanks to ggainey 's help,(details of my question) , I know now it is constructed by
one part of user-href after the API ROOT appended to the group-href
Eg:
I am not sure if my demand to add groups_user_href info is suitable or not, because maybe some usecase needs user_href when doing groups:users/list users query
Or maybe can add explanation/example in the doc to explain how to constructed groups_user_href?
thanks
The text was updated successfully, but these errors were encountered: