[Cosmo-dev] CMP changes for groups in Cosmo
Vinubalaji Gopal
vinu at osafoundation.org
Thu Feb 1 16:10:23 PST 2007
Hi all,
I finally managed to document the changes to CMP for adding group
support. Most of the management actions are similar to user management,
except for adding, viewing membership information.
http://wiki.osafoundation.org/Journal/CmpGroups
Viewing membership information is one of the new things I added
recently:
GET /cmp/members/testgroup
will respond with a
<?xml version="1.0" encoding="UTF-8"?>
<members xmlns="http://osafoundation.org/cosmo/CMP">
<user>bcm</user>
<group>group1</group>
</members>
Another thing
POST /cosmo/cmp/members/testgroup
with parameters (post content)
group=existinggroup1&group=existinggroup2&user=bcm
will delete all the existing members and add the newly posted members.
I will also need to get a list of members that are not in a particular
group. Thinking of adding something like:
GET /cmp/notmembers/testgroup
should respond with a
<?xml version="1.0" encoding="UTF-8"?>
<members xmlns="http://osafoundation.org/cosmo/CMP">
<user>vinu</user>
<group>group2</group>
</members>
thoughts?
--
Vinu
More information about the cosmo-dev
mailing list