Hacker News new | ask | show | jobs
by NicoJuicy 4458 days ago
Scott, while you here, can i get your opinion on OData and the future? You probably have some insights i'm not aware of.

(noticed some changes on their website recently)

I wanted to use it to implement my API, but i got kinda "scared" knowing that Netflix changed from OData to something else. Any examples of popular API's using OData for example?

1 comments

OData, to me, makes sense for data that has a dynamic schematic and/or a client that wants to explore or wander the data in the way an intranet or analyst does. Like Excel folks might. Not the way a phone app or desktop app might. Great for a certain kind of app.

For narrower apps, I'd make a web api but consider using just the OData query string formats (filter, sort) for flexibility.

In short:

Internal API = OData (= data layer)

External API = WebAPI with OData methods (=service layer, which brings the endpoint data to 3rd parties)

And because it's an internal API, it's a reason why you don't see it a lot in public API's (SAP uses it intensively though)

Thanks :)