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

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

on

  • 476 views

 

Statistics

Views

Total Views
476
Views on SlideShare
476
Embed Views
0

Actions

Likes
0
Downloads
2
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

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

    • Designing OData Serviceswith ASP.NET Web APIGabriel ENEATechnical Lead @@dotnet18 / gabrielenea.blogspot.com20 April 2013
    • Our world isawash in data
    • BUSINESS AND FINANCE
    • HEALTH AND WELLNESS
    • AUTOMOTIVE, INDUSTRIAL, &AEROSPACE
    • GOVERNMENT
    • SPORTS AND GAMES
    • WORLDWIDE HISTORICALWEATHER DATA
    • The Data has value only if it can be used
    • 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
    • Demo 1• Using OData with Excel
    • How OData works?ODataClient LibraryOData ServiceODataData ModelODataProtocolClientData SourceHTTP,REST,JSON/Atom
    • Entity ContainerEntity SetEntity SetEntityOData Entity Data ModelPropertyNavigationPropertyEntityPropertyNavigationPropertyEntityPropertyNavigationPropertyEntityProperty PropertyEntityProperty PropertyAssociationAssociationGET http://www.fabrikam.com/odata/$metadata
    • OData Formats• Atom Pub (XML)• JSON “light” (introduced in OData v3)• JSON “verbose” (OData v2)
    • 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.
    • OData features in ASP.NET Web API• Queries• CRUD operations• Entity Relations• Actions• Handling errors• OData compliant errors• Handling Unmapped Requests
    • 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)"}
    • Demo 2+• Formats• Queries• CRUD operations• Entity Relations• Actions• Handling errors
    • OData Security Guidance• EDM Security• [IgnoreDataMember] attribute• Query Security
    • OData features coming later toASP.NET Web API• $expand• $select• Batch updates• Media streams (picture, media files)
    • 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
    • Resourceswww.odata.orgwww.asp.net/web-api
    • Designing OData Services with ASP.NET Web APIGabriel ENEATechnical Lead – Maxcode@dotnet18 / gabrielenea.blogspot.com20 April 2013Please fill in your evaluation form