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
-~----------~----~----~----~------~----~------~--~---