Support declarative ApiVersion over OData entity to build versioned odata model
See original GitHub issueIn OData Model Configurations, it mentioned the programing way to build versioned odata model with Ignore method, that’s working but not so developer friendly.
The ask here is to support declarative way to annotate OData entity with the ApiVersion attribute, something like this without the need to manually specify PersonModelConfiguration.
public class Person
{
public int Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
[ApiVersion("2.0")]
public string Email { get; set; }
[ApiVersion("3.0")]
public string Phone { get; set; }
}
Or, provide an out-of-box implementation for VesionedEntityModelConfiguration.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8
Top Results From Across the Web
Support declarative ApiVersion over OData entity to build ...
In OData Model Configurations, it mentioned the programing way to build versioned odata model with Ignore method, that's working but not so ...
Read more >API versioning extension with ASP.NET Core OData 8
We need an Edm model provider to provide the Edm model based on the API version. Let's create the following interface and use...
Read more >OData API versioning issue .net core 3.1
The VersionedODataModelBuilder achieves this by creating a unioned set of all API versions, from all OData APIs, discovered through ...
Read more >ExternalDataSource | Salesforce Knowledge Developer Guide
Represents custom HTTP headers used with OData 2.0 or OData 4.0 connectors. Available in API version 43.0 or later. endpoint, string, The URL...
Read more >Scripted REST APIs
The scripted REST API feature allows application developers to build custom web service APIs.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Sounds reasonable to me. I’m sure the community would appreciate that.
We had an internal discussion for this, we still want such declarative experience as that’s what our develop used to, so want to check if you accept contribution for this and I might have some time next month to submit a general implementation of VesionedEntityModelConfiguration and make it a public supported experience than our home grown private copy.