I'm using OData ASP.NET Core 7.4.1
For exemple, with a request GET https://localhost:44346/api/v1/estates/74EEAB44-B8E7-EA11-B361-D43B04C15376?$expand=tenants , I can get a entity with the info of tenants
{
"@odata.context": "https://localhost:44346/odata/v1/$metadata#Estates(tenants(),tenants())",
"value": [
{
"updatedOn": "2020-08-26T16:22:01.03+02:00",
"tenants": [
{
"name": "tenant"
}
]
}
]
}
But with Put request PUT https://localhost:44346/odata/v1/estates(74EEAB44-B8E7-EA11-B361-D43B04C15376)?$expand=tenants , I can get my returned entity but without tenants
{
"@odata.context": "https://localhost:44346/odata/v1/$metadata#Estates(tenants(),tenants())",
"value": [
{
"updatedOn": "2020-08-26T16:22:01.03+02:00",
"tenants": []
}
]
}
Question : How to return tenants of returned entity in PUT request, because I don't want to have to make a GET(id) call to the server to refresh a created/updated entity. The server should return exactly the same representation of the entity as the GET(id).
There is a ticket opened about this but not resolve. Someone has solved this problem ?

