Also - I can't figure out how to remove all members from a group. I
can see it is possible with the SDS web interface, but I am not sure
what command is being used to do it.

I tried
 curl -i -H 'Content-Type: application/xml' -X POST -d '<workgroup-
memberships></workgroup-memberships>' 
http://rails.dev.concord.org/sds/4/workgroup/1402/membership

Laurel

On May 24, 10:32 am, laurel <[EMAIL PROTECTED]> wrote:
> Thanks Aaron - I should have remembered that.
>
> I have another question
>
> 1Alorkgroup. I can see this as a use case where a teacher decides to
> create 4 workgroups for his/her class but leaves the assignments to
> the students or just puts it off until later.
>
> 2) I do a query to find out the members of the workgroup (there are
> none) and get the response below
>
> curl -i -X GET -H 'Accept: 
> application/xml'http://rails.dev.concord.org/sds/4/workgroup/1403/membership
> HTTP/1.1 200 OK
> Date: Thu, 24 May 2007 14:25:23 GMT
> Server: lighttpd/1.4.11
> Content-Type: application/xml
> Cache-Control: no-cache
> Content-Length: 68
>
> <?xml version="1.0" encoding="UTF-8"?>
> <nil-classes>
> </nil-classes>
>
> I think it would be more useful to return the same response as a
> workgroup with members, but with an empty set of members...That way
> the same code could be used to parse the response.
>
> i.e.
>
> <workgroup-memberships>
> </workgroup-memberships>
>
> Could that change be made?
>
> Thanks,
>
> Laurel
>
> On May 23, 3:47 pm, Aaron <[EMAIL PROTECTED]> wrote:
>
> > Hi Laurel-
>
> > It turns out that a change made to the dev sds a while back was that
> > "users" are now "sail-users", and this apparently affects some of the
> > REST API's. I will update this on the REST API confluence page (and
> > determine if any other API's are affected).
>
> > So if you change the xml you're posting from:
> > <user-id>5362</user-id>
> > to:
> > <sail-user-id>5362</sail-user-id>
>
> > it should work.
>
> > Full xml:
> > <workgroup-memberships>
> >    <workgroup-membership>
> >      <sail-user-id>5362</sail-user-id>
> >    </workgroup-membership>
> > </workgroup-memberships>
>
> > -- Aaron
>
> > --
> > Aaron Unger
> > The Concord Consortium
>
> > On May 23, 2007, at 2:45 PM, laurel wrote:
>
> > > Hi all,
>
> > > I'm doing the following on the SDS (using curl) and having problems
> > > and I'm wondering if anyone can help. Note that in step 2 I don't seem
> > > to get members in my workgroup, despite the fact that I've just
> > > created one. Can someone related to the SDS check out my technique and
> > > possibly suggest what I am doing wrong. Thx.
>
> > > Laurel
>
> > > 1) creating a membership list for a workgroup
>
> > > curl -i -H 'Content-Type: application/xml' -X POST -d '<workgroup-
> > > memberships><workgroup-membership><user-id>5362</user-id></workgroup-
> > > membership></workgroup-memberships>'http://rails.dev.concord.org/
> > > sds/4/workgroup/1375/membership
>
> > > HTTP/1.1 201 Created
> > > Date: Wed, 23 May 2007 18:22:01 GMT
> > > Server: lighttpd/1.4.11
> > > Content-Type: application/xml
> > > Location:http://rails.dev.concord.org/sds/4/workgroup/1375/membership
> > > Cache-Control: no-cache
> > > Content-Length: 0
>
> > > 2) retrieving a membership list for a workgroup
>
> > > curl -i -X GET -H 'Accept: application/xml'
> > >http://rails.dev.concord.org/sds/4/workgroup/1375/membership
>
> > > HTTP/1.1 200 OK
> > > Date: Wed, 23 May 2007 18:22:08 GMT
> > > Server: lighttpd/1.4.11
> > > Content-Type: application/xml
> > > Cache-Control: no-cache
> > > Content-Length: 184
>
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <workgroup-memberships>
> > >   <workgroup-membership>
> > >     <sail-user-id nil="true"></sail-user-id>
> > >   </workgroup-membership>
> > > </workgroup-memberships>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SAIL-Dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/SAIL-Dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to