Questions tagged [odata]

The Open Data Protocol (OData) is a standardized protocol for building REST APIs. OData specifies many best practices for REST APIs, including a terse, hypermedia-oriented JSON format. Use this tag for all specification versions (v2, v3, v4.x).

The Open Data Protocol (OData) is a standardized protocol for building REST APIs. It is a web protocol for querying and updating data, which can be freely incorporated in various kinds of data access applications

OData v4 specifies many best practices for REST APIs including a terse, hypermedia-oriented JSON format.

OData v4 is an OASIS Standard, with more than 20 companies participating on the technical committee. Microsoft, SAP, Salesforce, and many other companies are strong advocates of the protocol as a solution to an otherwise fragmented REST API landscape.

This same standardization allows generic hypermedia clients to consume the service. , and are well known data clients that have support for consuming OData.

7563 questions
206
votes
8 answers

Difference between OData and REST web services

What is the difference between OData and REST-ful web services?
Scott
  • 11,046
  • 10
  • 51
  • 83
203
votes
28 answers

Could not load file or assembly 'System.Web.Http 4.0.0 after update from 2012 to 2013

I did the upgrade according to. http://www.asp.net/mvc/tutorials/mvc-5/how-to-upgrade-an-aspnet-mvc-4-and-web-api-project-to-aspnet-mvc-5-and-web-api-2 I get the error. Does any one else got this error? Server Error in '/' Application. Could not…
Michal Asaf Carmeli
  • 2,158
  • 2
  • 15
  • 9
87
votes
8 answers

WCF Data Services (OData) Vs ASP.NET Web API

I am designing a distributed application that will consist of RESTful services and a variety of clients (Silverlight, iOS, Windows Phone 7, etc). Right now I'm determining which technology I should use to implement my services, WCF Data Services…
Raymond Saltrelli
  • 4,071
  • 2
  • 33
  • 52
84
votes
13 answers

Could not load file or assembly System.Net.Http, Version=4.0.0.0 with ASP.NET (MVC 4) Web API OData Prerelease

Problem After installing the Microsoft ASP.NET Web API OData package 5.0.0-rc1 prerelease I end up with the following exception: Could not load file or assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'…
Yves M.
  • 29,855
  • 23
  • 108
  • 144
74
votes
2 answers

OData vs GraphQL

Is there a good comparison of GraphQL & OData in terms of performance, developers usability, community, etc.. All articles that I find in the Internet are very bias. What would be the best way to return a big bulky JSON or binary data?
Yar0myr
  • 757
  • 1
  • 6
  • 4
71
votes
4 answers

OData "where ID in list" query

I have an OData service where I'm trying to filter by a list of IDs; the SQL equivalent would be something like: SELECT * FROM MyTable WHERE TableId IN (100, 200, 300, 400) The property I'm trying to filter on is typed as an Int32. I've tried the…
technophile
  • 3,556
  • 1
  • 20
  • 24
69
votes
6 answers

InvalidOperationException: Can't use schemaId .. The same schemaId is already used for type

I receive the following error. InvalidOperationException: Can't use schemaId "$Registration" for type "$PortalService.Models.Registration". The same schemaId is already used for type "$PortalService.Models.Registration" I have tried the suggestions…
John Bowyer
  • 1,213
  • 1
  • 15
  • 26
58
votes
4 answers

ASP .NET MVC 4 WebApi: Manually handle OData queries

I have a Web Service made using the WebAPI provided by ASP .NET MVC 4. I know that the layer on top of which WebAPI works automatically handles OData Queries (such as $filter, $top, $skip), but what if I want to handle the filtering by myself? I…
frapontillo
  • 10,499
  • 11
  • 43
  • 54
56
votes
1 answer

What is Swagger and does it relate to OData?

I am familiar with the Microsoft stack. I am using OData for some of my restful services. Recently I came across Swagger for API documentation and I am trying to understand how it relates to OData. Both of them seem to be RESTful specifications.…
Muthukumar
  • 8,679
  • 17
  • 61
  • 86
54
votes
5 answers

OData: Date "Greater Than" filter

Is there a way to return a series of records in OData by specifying a "Date greater than xxxxx" filter...but using a Date that was previously obtained form an OData feed? Use Case: Pretend that I want to build a web page that displays a list of the…
lamarant
  • 3,243
  • 2
  • 25
  • 30
53
votes
2 answers

OData Error: The query specified in the URI is not valid. The property cannot be used in the query option

I'm trying to get an OData endpoint up and working and I'm having this error that even Google doesn't have much to say about. I have created an Entity Framework EDMX context (database first), had the designer generate 2 models from it. Everything is…
Francis Ducharme
  • 4,848
  • 6
  • 43
  • 81
52
votes
6 answers

OData Python Library available?

I was wondering if any OData Python libraries are available to produce and consume OData? There are implementations for different languages: http://www.odata.org/libraries/ But I couldn't find Python so far. I don't mean IronPython by the way. The…
Patrick Wolf
  • 2,530
  • 2
  • 28
  • 27
49
votes
7 answers

Web API OData Security per Entity

Background: I have a very large OData model that is currently using WCF Data Services (OData) to expose it. However, Microsoft has stated that WCF Data Services is dead and that Web API OData is the way they will be going. So I am researching ways…
Vaccano
  • 78,325
  • 149
  • 468
  • 850
47
votes
1 answer

OData $filter with multiple predicates

If I have two entities in my model, "People" and "Addresses", and a particular Person has zero or more addresses, accessed via an AddressList navigation property, can I write an OData query that answers the following question: "Which people have a…
Ben Vitale
  • 1,754
  • 3
  • 17
  • 27
44
votes
2 answers

odata - combining $expand and $select

In odata v4.0 is there an option for combining $expand and $select together? I have a scenario wherein I'm trying to get specific columns in productItemChoices and item. The below query will give you all the columns in productItemChoices. I…
pranag
  • 5,432
  • 2
  • 17
  • 15
1
2 3
99 100