...
Code Block |
---|
{ "groupHasMemberResponse":{ "hasMember":true, "responseMetadata":{ "protocolVersion":"v0.1.0", "requestId":"abcd123412345678909", "resultCode":"SUCCESS", "serverMillis":123, "serverType":"FIFER reference server", "serverVersion":"v0.5.0", "success":true } } } |
POJ (plain old json)
This is similar to REST, except it doesnt use HTTP methods, and it doesnt use the URL to convey request information (though you could use request params)
Request:
Code Block |
---|
{{
"groupHasMemberRequest":{
"groupLookup":{
"handle":"someHandle"
},
"subjectLookup":{
"id":"someId"
}
}
}
|
Note: you could also use URL params: http://url/fiferServer/poj/v0_1_0?operation=groupHasMemberRequest&groupLookup_handle=someHandle&subjectLookup_id=someId
Response:
Code Block |
---|
{
"groupHasMemberResponse":{
"hasMember":true,
"responseMetadata":{
"protocolVersion":"v0.1.0",
"requestId":"abcd123412345678909",
"resultCode":"SUCCESS",
"serverMillis":123,
"serverType":"FIFER reference server",
"serverVersion":"v0.5.0",
"success":true
}
}
}
|
POX (plan old xml)
Request:
Code Block |
---|
{<groupHasMemberRequest>
<groupLookup>
<handle>someHandle</handle>
</groupLookup>
<subjectLookup>
<id>someId</id>
</subjectLookup>
</groupHasMemberRequest>
|
Note: you could also use URL params: http://url/fiferServer/pox/v0_1_0?operation=groupHasMemberRequest&groupLookup_handle=someHandle&subjectLookup_id=someId
Response:
Code Block |
---|
<groupHasMemberResponse>
<responseMetadata>
<serverType>FIFER reference server</serverType>
<requestId>abcd123412345678909</requestId>
<serverVersion>v0.5.0</serverVersion>
<protocolVersion>v0.1.0</protocolVersion>
<success>true</success>
<resultCode>SUCCESS</resultCode>
<serverMillis>123</serverMillis>
</responseMetadata>
<hasMember>true</hasMember>
</groupHasMemberResponse>
|