ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Naveen <naveen.band...@gmail.com>
Subject Rest API PUT command syntax
Date Wed, 27 Dec 2017 09:52:39 GMT
Hi 

Am using 2.3

Trying to use Rest API to put a record into cache, but not finding the
correct syntax and logs also does not show anything.

Here is the REST url for GET, 

http://10.144.114.115:8080/ignite?cmd=get&key=P100000002&cacheName=EDIF-CUSTOMER

Here is the data 

{"successStatus":0,"affinityNodeId":"06f27761-f029-41a2-acfc-8d8ee747499d","sessionToken":null,"error":null,"response":{"partyId":"P100000002","accountIdList":"A100000002","custAddressIdList":"custAddressIdList2","partyrole":"partyrole2","partyStatusCode":"partyStatusCode2","refreeId":"refreeId2","partyCreationDate":"partyCreationDate2","isVip":"isVip2","mdmId":"mdmId2","preferredAgent1":"preferredAgent12","preferredAgent2":"preferredAgent22","parentPartyId":"parentPartyId2","title":"title2","firstName":"firstName2","middleName":"middleName2","lastName":"lastName2","dob":"dob2","gender":"gender2","nationality":"nationality2","maritalStatus":"maritalStatus2","anniversaryDate":"anniversaryDate2","occupation":"occupation2","houseType":"houseType2","pictureUrl":"pictureUrl2","occupationText":"occupationText2","legalName":"legalName2","placeOfBirth":"placeOfBirth2","partyCategory":"partyCategory2","preferredLanguage":null,"blacklistFlag":"blacklistFlag2","partySegment":"partySegment2","preferredCommChannel":null,"preTimeOfOutboundCall":"preTimeOfOutboundCall2","ageGroup":"ageGroup2","appellate":"appellate2","interestInTrials":"interestInTrials2","interestCode":"interestCode2","organizationType":"organizationType2","partyConsumer":"partyConsumer2","aadharNo":"A10000000002","panNo":"panNo2","passportNo":"passportNo2","visaNo":"visaNo2","visaType":"visaType2","visaValidityDate":"visaValidityDate2","employeeId":"employeeId2","mobileNo":"M100000002","landlineNo":"landlineNo2","workTelNo":"workTelNo2","primaryEmailId":"primaryEmailId2","secondaryEmailId":"secondaryEmailId2","relationshipType":"relationshipType2","relationshipFirstname":"relationshipFirstname2","relationshipMiddlename":null,"relationshipLastname":"relationshipLastname2","channel":"channel2","posAgentCode":"posAgentCode2","organizationName":"organizationName2","jobTitle":"jobTitle2","department":"department2","updateddatetime":null,"updatedby":"updatedby2","accessCode":"accessCode2","ssid":"ssid2","productOffer":"productOffer2","routingzone":"routingzone2","syncrequired":"syncrequired2","syncto":"syncto2","adbSource":"adbSource2"}}

if I want to update field called custAddressIdList, how do I frame the rest
URL

http://10.144.114.115:8080/ignite?cmd=put&key=P100000001&custAddressIdList=newValue&cacheName=EDIF-CUSTOMER

Giving the below error

{"successStatus":1,"sessionToken":null,"error":"Failed to handle request:
[req=CACHE_PUT, err=Failed to find mandatory parameter in request:
val]","response":null}

Do we have any command to update a record, does PUT always inserts a new
record or it also updates the existing record with whatever the fields we
pass just like a SQL update works

Thanks
Naveen



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Mime
View raw message