Last post Apr 20, 2016 06:38 AM by raju dasa
Apr 19, 2016 09:15 PM|Xequence|LINK
How can I make a dynamic object with my from body API request? It is json coming in that is being mapped to an object currently. Limitation is I cannot recompile my CustomerMaintenanceDTO object. Thanks!
public HttpResponseMessage CreateCustomer(HttpRequestMessage request,
[FromBody] CustomerMaintenanceDTO customerDTO)
Apr 20, 2016 06:37 AM|Yohann Lu|LINK
From your description, I suggest you can create open complex with Web API 2.2 for OData v4.0.
Open complex types allow customers to add undeclared properties in the payload. And in the future they can use these properties in queries.
The following links for your reference.
[Tutorial & Sample] Open complex type step by step with Web API 2.2 for OData v4.0:
How to receive dynamic data in Web API controller Post method:
Apr 20, 2016 06:38 AM|raju dasa|LINK
Check this site: