Skip to Content.
Sympa Menu

grouper-dev - [grouper-dev] Re: more WS problems

Subject: Grouper Developers Forum

List archive

[grouper-dev] Re: more WS problems


Chronological Thread 
  • From: Scott Koranda <>
  • To: Chris Hyzer <>
  • Cc: Grouper Dev <>
  • Subject: [grouper-dev] Re: more WS problems
  • Date: Thu, 19 Apr 2012 08:49:17 -0500

> Hi,
>
> > no problem. here are the client calls and the JSON. Thanks, Chris
> >
> >
> > #############################
> > Get the membership ID
> >
> > Request:
> >
> > PUT /grouper-ws/servicesRest/v2_1_001/groups
> >
> > {
> > "WsRestGetMembershipsRequest":{
> > "fieldName":"members",
> > "memberFilter":"Immediate",
> > "wsGroupLookups":[
> > {
> > "groupName":"test:testGroup"
> > }
> > ],
> > "wsSubjectLookups":[
> > {
> > "subjectId":"test.subject.0",
> > "subjectSourceId":"jdbc"
> > }
> > ]
> > }
> > }
> >
>
> Thanks, but it is not working for me.
>
> I am sending in this:
>
> {
> "WsRestGetMembershipsRequest":{
> "fieldName":"members",
> "memberFilter":"Immediate",
> "wsGroupLookups":[
> {
> "groupName":"Reference:COmanageDataSource:COmanage:admin"
> }
> ],
> "wsSubjectLookups":[
> {
>
> "subjectId":"",
> "subjectSourceId":"ligo"
> }
> ]
> }
> }
>
> Using this curl command:
>
> curl -X PUT -u GrouperSystem:XXXXXXXXXX -H "Content-Type:
> text/x-json" -d @getMembershipID.json
> https://oregano.phys.uwm.edu/grouper-system/servicesRest/v2_1_000/groups
>
> (I also tried with POST)
>

Nevermind, I figured it out.

For the archives, the JSON input is correct but it should go
in with a POST to the URL

.../servicesRest/v2_1_000/memberships

Thanks,

Scott



Archive powered by MHonArc 2.6.16.

Top of Page