Comments (7)
@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.
It's just
var builder = new ODataConventionModelBuilder { Namespace = "Default" };
builder.EntitySet<Foobar>("Foobars");
config.MapODataServiceRoute("odata", "odata", builder.GetEdmModel());
from swashbuckle.odata.
Researching...
from swashbuckle.odata.
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.
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.
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.
That seems to work. Thanks!
from swashbuckle.odata.
Related Issues (20)
- SchemaRegistryExtensions.GetPropertyNameForEdmModel returns wrong Edm Property name HOT 2
- Calling for Maintainers HOT 6
- Swagger generation resulting in error. Error thrown from SwaggerRouteStrategy.cs line 62
- AdjustRelativePathForStringParams is not working case-insensitive (param names)
- Method not found: 'Flurl.Url Flurl.Url.AppendPathSegment(System.Object)' HOT 1
- Precondition Failure
- Swagger docs don't have type information for Get method when it returns IHttpActionResult HOT 2
- Add custom property resolver to 4.0.0
- Unbound actions generate invalid swagger HOT 2
- Entity bound actions can have ODataActionParameters type parameters only
- Custom type parameters for OData functions HOT 1
- Exploring different version at the same time throw an error.
- Support for Microsoft.AspNet.OData 7? HOT 10
- Swashbuckle.OData.Core throws Specified argument was out of the range of valid values exception and failing to generate swagger ui HOT 1
- Need Help OData V4 REST Web API Documentation HOT 4
- Swashbuckle.OData.Core is too slow, consume 60% memory while open swagger in chrome browser HOT 4
- OData Web API Controller Summary not showing in swagger
- Swashbuckle.OData compatibility with OData V3 Controllers HOT 1
- Swagger generation fails for Entities having DataContractAttribute fails with "Sequence contains no matching element" when used in OData Actions. HOT 1
- Accurate OData response schema
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swashbuckle.odata.