future support for OData?
Greetings!
Are there any plans to support OData (a kind of REST API)? If not, can someone sketch out how to support it? (Maybe I'll do the implementation)
Hi, I haven't looked at the possibility of swagger having interopt with odata. how do you envision this working?
Since OData is rest-based, it should be possible. I assume that swagger has some kind of adapter or plug-in to manage the differences in protocols. OData would be just another one, since it is a widely used open standard.
There are a few minor things that are particular to OData. For example, there is a /$metadata URL that gives all the possible collections that can be reached.
This would be wonderful to include if anyone has the bandwidth! I'd also be willing to do some work as a contributor
How could this be best done? OData has a $metadata file that presents all the entities + relations and the api all have standardized URI to do operations. Can this be used to generate the APIS?
I haven't honestly dug in too much, but when I looked at the odata structure previously, I felt like it could fit inside swagger just fine. Where it gets murky is in how the parameters are generated to build filters, etc., which would need some custom work in the UI.
I am moving this to swagger-spec: https://github.com/swagger-api/swagger-spec/issues/230