Your SlideShare is downloading. ×
Iasi code camp 20 april 2013   gabriel enea - designing o-data services with asp.net web api
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Iasi code camp 20 april 2013 gabriel enea - designing o-data services with asp.net web api

259
views

Published on


0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
259
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Designing OData Serviceswith ASP.NET Web APIGabriel ENEATechnical Lead @@dotnet18 / gabrielenea.blogspot.com20 April 2013
  • 2. Our world isawash in data
  • 3. BUSINESS AND FINANCE
  • 4. HEALTH AND WELLNESS
  • 5. AUTOMOTIVE, INDUSTRIAL, &AEROSPACE
  • 6. GOVERNMENT
  • 7. SPORTS AND GAMES
  • 8. WORLDWIDE HISTORICALWEATHER DATA
  • 9. The Data has value only if it can be used
  • 10. What is the Open Data Protocol?WebBrowsersMobilePhonesBI toolsCustomapplications(.NET, Java,PHP)ClientsODataCustomapplications(.NET, Java,PHP)Cloud Storage(WindowsAzure Tables,SQL Azure)ContentManagement(SharePoint)WindowsAzure DataMarketplaceData Sources
  • 11. Demo 1• Using OData with Excel
  • 12. How OData works?ODataClient LibraryOData ServiceODataData ModelODataProtocolClientData SourceHTTP,REST,JSON/Atom
  • 13. Entity ContainerEntity SetEntity SetEntityOData Entity Data ModelPropertyNavigationPropertyEntityPropertyNavigationPropertyEntityPropertyNavigationPropertyEntityProperty PropertyEntityProperty PropertyAssociationAssociationGET http://www.fabrikam.com/odata/$metadata
  • 14. OData Formats• Atom Pub (XML)• JSON “light” (introduced in OData v3)• JSON “verbose” (OData v2)
  • 15. OData Query OptionsOption Description$filter Filters the results, based on a Booleancondition.$inlinecount Tells the server to include the total count ofmatching entities in the response. (Useful forserver-side paging.)$orderby Sorts the results.$skip Skips the first n results.$top Returns only the first n the results.
  • 16. OData features in ASP.NET Web API• Queries• CRUD operations• Entity Relations• Actions• Handling errors• OData compliant errors• Handling Unmapped Requests
  • 17. OData Entity Relations / Links• Edit relationships between two entities• Each link has a URI with the form:entity/$links/entity• e.g.:/Jobs(1)/$links/CompanyPOST http://localhost/odata/jobs(1)/$links/CompanyContent-Type: application/jsonContent-Length: 50{"url":"http://localhost/odata/companies(‘Maxcode)"}
  • 18. Demo 2+• Formats• Queries• CRUD operations• Entity Relations• Actions• Handling errors
  • 19. OData Security Guidance• EDM Security• [IgnoreDataMember] attribute• Query Security
  • 20. OData features coming later toASP.NET Web API• $expand• $select• Batch updates• Media streams (picture, media files)
  • 21. Consuming OData Services• Your Browser (e.g. OData Explorer)• .NET: WCF Data Services• Java: odata4j (including Java on Android)• JavaScript: JQuery, JayData, datajs, Breeze• PHP: OData SDK for PHP• Fiddler, LinqPad
  • 22. Resourceswww.odata.orgwww.asp.net/web-api
  • 23. Designing OData Services with ASP.NET Web APIGabriel ENEATechnical Lead – Maxcode@dotnet18 / gabrielenea.blogspot.com20 April 2013Please fill in your evaluation form

×