-
Notifications
You must be signed in to change notification settings - Fork 474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Example of Serialization/Deserialization for CSV #2749
Comments
@LeviButcher I am working on a demo. |
@LeviButcher Please let me know your thought about: https://devblogs.microsoft.com/odata/customize-odata-payload-serialization-format-within-asp-net-core-odata/ |
@xuzhg great work on the article, It's the only working implementation I was able to find that got this far in solving this. I'm exploring options for dealing with the navigation property, I see you parse it into one 'cell'. I think there are two general approaches to take for navigation properties: {
"name": "John Doe",
"age": 30,
"address": {
"street": "123 Main St",
"city": "Anytown",
"zipCode": "12345"
},
"hobbies": ["reading", "traveling", "swimming"],
"contacts": [
{
"type": "email",
"value": "[email protected]"
},
{
"type": "phone",
"value": "555-1234"
}
]
}
|
Short summary (3-5 sentences) describing the issue.
Currently, there is no up to date example of how to implement a Custom Formatter to return both CSV Response and Read a CSV request (Using text/csv with Content-Type and Accept headers). My use case for needing this example is for allowing batch updates with a CSV file across multiple entity types. This could be elegantly solved if it was possible to accept a request of text/csv and the server automatically de-serialized it and applied the data to a patch endpoint.
Any guidelines would be appreciated and I'm more then willing to write up the example and place over here: https://github.com/OData/ODataSamples
Assemblies affected
*Which assemblies and versions are known to be affected e.g. OData WebApi lib 6.1.0
Most recent Odata Versions.
The text was updated successfully, but these errors were encountered: