I've created REST JSON server and I would like change rest json response
from
{
"value": [
{
"$id": 1,
"@xdata.type": "XData.Default.mes_to_opde_schedule",
"uid": 1,
"mesId": "Identifier1",
"valueDate": "2023-08-12T23:00",
"value": 3281.5,
"valueUnit": "--"
},
to
You can remove $id by setting EntityLoopHandling to TEntityLoopHandling.Error.
You can remove @xdata.type by setting InstanceTypeSerialization property to InstanceTypeSerialization.IfNeeded.
You can't change the name of value property to data. In this case, if it's really needed, you should create a service operation where you can freely implement your endpoint logic and freely define the JSON format of the request and response using specific DTO classes.