Hi,
I am quit new to CUBA platform. I created app with some REST service methods. I test it with Swagger UI. The problem I have is that: the method does not return the full object I expect - it simply returns _entityName and id (even _instanceName is empty while in fact it is not):
Response I got:
[
{
"_entityName": "proto2$Wezly",
"_instanceName": "",
"id": "1c3e2fb0-659f-1b71-ee5b-e8662f1a6f1f"
}
]
I expect it to return full object with all attributes and links as in proto2$Wezly entity REST method e.g.
[
{
"_entityName": "string",
"_instanceName": "string",
"deleteTs": "2005-14-10T13:17:42.16Z",
"nazwaWezla": "String",
"czyWezelCentralny": true,
"updatedBy": "String",
"createdBy": "String",
"adresWezla": "String",
"createTs": "2005-14-10T13:17:42.16Z",
"id": "19474a3b-99b5-482e-9e77-852be9adf817",
"federacja": {},
"version": 42,
"updateTs": "2005-14-10T13:17:42.16Z",
"deletedBy": "String"
}
]
The method declaration in interface:
public Wezly test3(String in);
and Wezly class extends StandardEntity:
public class Wezly extends StandardEntity
What am I missing here? What do I need to change to make sure full object with all attributes and links is generated as REST service methed result?
Cheers,
Norbert