I am playing with the beta version of WebAPI and it seems that selects do not affect the response of the action returning IQueryable. For instance:
HTTP: // local: 62689 / API / product $ select = Id, Name
Expected:
<Product> <Id>1</Id> <Name>Product 1</Name> </Product>
Actual result:
<Product> <Id>1</Id> <Name>Product 1</Name> <ItemsInStock>6</ItemsInStock> <Price>49.99</Price> <Created>2012-01-15T00:00:00</Created> </Product>
Are there restrictions on OData support for WebAPI?
I tried other queries on this dataset (e.g. top, filter) and they work great.
source share