Giter VIP home page Giter VIP logo

Comments (7)

 avatar commented on August 30, 2024

@jondavis-ineight Can you please provide a sample ODataConfig for this? I.e., your ODataConventionModelBuilder configuration? Not sure at this point why this would be happening...

from swashbuckle.odata.

jondavis-ineight avatar jondavis-ineight commented on August 30, 2024

It's just

var builder = new ODataConventionModelBuilder { Namespace = "Default" };
builder.EntitySet<Foobar>("Foobars");
config.MapODataServiceRoute("odata", "odata", builder.GetEdmModel());

from swashbuckle.odata.

 avatar commented on August 30, 2024

Researching...

from swashbuckle.odata.

bigred8982 avatar bigred8982 commented on August 30, 2024

Just curious, but wouldn't that end up being two separate routes? Following
the standard conventions set out by the convention model builder and
examples from Microsoft, shouldn't you have two methods on your controller?
One that takes zero parameters, and one that takes a key?

It seems like that would be the "correct" approach.

In your case, wouldn't it be better to simply set a parameter like this in
the query string?
On Fri, Jan 29, 2016 at 6:05 PM Richard Beauchamp [email protected]
wrote:

Researching...


Reply to this email directly or view it on GitHub
#62 (comment)
.

from swashbuckle.odata.

 avatar commented on August 30, 2024

Hey @jondavis-ineight Fix for this issue is available in v2.12.5. Give it a try and let me know if you find any issues. Thanks!

from swashbuckle.odata.

jondavis-ineight avatar jondavis-ineight commented on August 30, 2024

So sorry I haven't had the chance to respond sooner. This is awesome, thanks! I'll take a look at this soon!

from swashbuckle.odata.

jondavis-ineight avatar jondavis-ineight commented on August 30, 2024

That seems to work. Thanks!

from swashbuckle.odata.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.