swagger-core icon indicating copy to clipboard operation
swagger-core copied to clipboard

future support for OData?

Open allan-d-c opened this issue 12 years ago • 7 comments

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)

allan-d-c avatar Feb 06 '14 19:02 allan-d-c

Hi, I haven't looked at the possibility of swagger having interopt with odata. how do you envision this working?

fehguy avatar Feb 18 '14 04:02 fehguy

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.

allan-d-c avatar Feb 21 '14 04:02 allan-d-c

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.

allan-d-c avatar Feb 21 '14 04:02 allan-d-c

This would be wonderful to include if anyone has the bandwidth! I'd also be willing to do some work as a contributor

mkrouwer avatar Oct 02 '14 21:10 mkrouwer

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?

arnos avatar Oct 08 '14 19:10 arnos

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.

fehguy avatar Oct 09 '14 23:10 fehguy

I am moving this to swagger-spec: https://github.com/swagger-api/swagger-spec/issues/230

fehguy avatar Dec 20 '14 23:12 fehguy