You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by f cad <wk...@gmail.com> on 2022/05/19 07:16:40 UTC
restful api get not work,but scan can work
Hi,I am new to ignite
I have a question.
anybody kown why restful api scan has data
http://127.0.0.1:8080/ignite?cmd=qryscanexe&pageSize=5&cacheName=vest_contact_1
result
{
"successStatus": 0,
"error": null,
"sessionToken": null,
"response": {
"items": [
{
"key": {
"id": 703896957108224
},
"value": {
"mergedId": null,
"priority": 0,
"identities": [
{
"id": "7",
"type": "idCard",
"dateCreated": 1652932875433,
"lastUpdated": 1652932875433
}
],
"followerIds": [],
"contactType": "LEADER",
"dateCreated": 1652932875433,
"lastUpdated": 1652932875433
}
}
],
"last": true,
"queryId": 2,
"fieldsMetadata": [
{
"schemaName": null,
"typeName": null,
"fieldName": "key",
"fieldTypeName": null
},
{
"schemaName": null,
"typeName": null,
"fieldName": "value",
"fieldTypeName": null
}
]
}
}but get command no result
http://127.0.0.1:8080/ignite?cacheName=vest_contact_1&cmd=get&keyType=io.naza.vest.domain.contact.ContactKey&key={
"id":703896957108224}result
{
"successStatus": 0,
"affinityNodeId": "ee5e4d0d-5c91-4b9d-b68f-5dfac2f45908",
"error": null,
"sessionToken": null,
"response": null
}