R3 Search Service - typo error for message when resource does not exist
See this message -
POST {{base_url}}/api/search/v2/query
Body
{
"kind": "opendes:wks:master-data--wellbore:1.0.0",
"query": "*"
}
Response -
{
"code": 404,
"reason": "Not Found",
"message": "Resource you are trying to find does not exists"
}
Also note that the error message is the same when user mistypes entity name (ex: Wellbore1 instead of Wellbore) and when entity is empty i.e. no data loaded yet.
I have earlier verified using Schema service that this entity exists -
{
"schemaIdentity": {
"authority": "opendes",
"source": "wks",
"entityType": "master-data--Wellbore",
"schemaVersionMajor": 1,
"schemaVersionMinor": 0,
"schemaVersionPatch": 0,
"id": "opendes:wks:master-data--Wellbore:1.0.0"
},
"createdBy": "e09bb2a5-337f-48a7-8f11-13f939b8a6ee",
"dateCreated": "2021-02-18T03:53:57.738+00:00",
"status": "DEVELOPMENT",
"scope": "SHARED"
},