8/9/2019 OData Begins
http://slidepdf.com/reader/full/odata-begins 1/32
1
ODataScott Hanselman
Principal Program Manager LeadMicrosoft
8/9/2019 OData Begins
http://slidepdf.com/reader/full/odata-begins 11/3211
Cost Cutting
in VS 2010
DrivingScott Gu
8/9/2019 OData Begins
http://slidepdf.com/reader/full/odata-begins 18/32
18
WCF Data
Services
WCF
Services
8/9/2019 OData Begins
http://slidepdf.com/reader/full/odata-begins 19/32
19
WCF Data
Services
WCF
Services
WebClient
(for now)
8/9/2019 OData Begins
http://slidepdf.com/reader/full/odata-begins 20/32
20
SOAP
WS-SecurityWS-*
REST
AtomPubOData
WCF Data
Services
WCF
Services
8/9/2019 OData Begins
http://slidepdf.com/reader/full/odata-begins 21/32
21
Target Scenarios
HTML + Javascript
Data (XML,JSON,…)
DLL + XAML
Data (XML,JSON,…) Data (XML,JSON,…)
Mashup UI
Data
Feeds
AJAX
Apps
Silverlight
Apps
Online
Services
Mashups
8/9/2019 OData Begins
http://slidepdf.com/reader/full/odata-begins 22/32
22
A RESTful Interface for DataJust HTTP
• Data as resources, HTTP methods to act on it
• Leverage caching, proxies, authentication, …
Uniform URL syntax
• Every piece of information is addressable
• Predictable and flexible URL syntax
Multiple representations
• Use regular HTTP content-type negotiation
• Atom*, JSON
• *full AtomPub protocol support
8/9/2019 OData Begins
http://slidepdf.com/reader/full/odata-begins 23/32
23
Model and Operation SemanticsUnderlying data model- Entity Data Model
- Entities Resources
- Associations Links
Operation semantics- Mapping of HTTP methods
- GET retrieve resource
- POST create resource
- PUT update resource
- DELETE delete resource
8/9/2019 OData Begins
http://slidepdf.com/reader/full/odata-begins 24/32
24
URL Conventions
• Addressing entities and sets
• Presentation options
Entity-set /Bookmarks
Single entity /Bookmarks(123)
Member access /Bookmarks(123)/Name
Link traversal /Bookmarks(123)/TagsDeep access /Bookmarks(123)/Tags('abc')/Name
Raw value access /Bookmarks(123)/Names/$value
Sorting /Bookmarks?$orderby=Name
Filtering /Bookmarks?$filter=Created gt '2007-05-07'
Paging /Bookmarks?$top=10&$skip=30
Inline expansion /Bookmarks?$expand=Tags
8/9/2019 OData Begins
http://slidepdf.com/reader/full/odata-begins 32/32
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should
not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS,
IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Top Related