question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support declarative ApiVersion over OData entity to build versioned odata model

See original GitHub issue

In 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:closed
  • Created 5 years ago
  • Comments:8

github_iconTop GitHub Comments

3reactions
commonsensesoftwarecommented, Oct 3, 2018

Sounds reasonable to me. I’m sure the community would appreciate that.

1reaction
chuanbozcommented, Oct 3, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found