I'm using the new ASP.NET webapi odata (version 4.0.0 last published 27/2/2013 according to Nuget)
Basically I'm doing it as described here: http://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api
I'm publishing my data transfer objects and the odata atom pub feed is created but I'd like to have some more control over it. Mainly I'd like to be able to do the following:
- decide what goes on the title, author and updated elements for the feed
- decide whether or not to have the edit links
- change what is shown in
<category term="X"
and inm:type
in sub properties that are classes in my application. Currently they expose the c# class names with the full namespace but I don't want to expose this.
Thanks.
The OData media type formatter is more extensible now. Samples follow.
1) decide what goes on the title, author and updated elements for the feed
And register the custom serializer provider using,
2) customize edit links
and register the custom serializer provider as above.
We still don't support scenario 3 i.e aliasing type names and namespaces.