SlideShare a Scribd company logo
ASP.NET Web API 2
Pietro Libro
http://blogs.ugidotnet.org/PietroLibroBlog
pietro.libro@domusdotnet.org

http://www.linkedin.com/in/pietrolibro
Agenda
• Web API:
–

REST in pillole

• Web API 2, novità:
– Attribute Routing
– Batch Requests
– IHttpActionResult
– Cross-Origin Requests (CORS)
– External Authentication Services
– Nuove features per OData
REST in “Pillole”
– Architettura software per sistemi di ipertesto distribuiti come il WWW
– Principi che delineano come le risorse sono definite ed indirizzate
– Risorsa
•

Univocamente indirizzabile tramite URI

•

Stato dell’applicazione e funzionalità

– Protocollo:
•

Client-Server

•

Stateless

•

Cachable

•

A livelli

– HTTPHTTPS
Web API 2: Attribute Routing
• Routing: Match tra URI ed azioni
• (V1) Routing basato su convenzioni
– Difficile (non impossibile ) mappare URI del tipo Cliente/1/Ordini

• NEW! Routing basato su attributi
– URI User Friendly che descrivono risorse eo gerarchie di risorse

– Api Versioning
•

APIV1Clienti

•

APIV2Clienti
Web API 2: Attribute Routing
• NEW! Routing basato su attributi
– Overloaded URI segments
•

Ordini/1

•

Ordini/Pending

– Multiple Parameter Types
•

Ordini/1

•

Ordini/29/11/2013

– Routing Constraints
Web API 2: Attribute Routing
• «Attivare» Attribute Routing
– MapHttpAttributeRoutes() in WebApiConfig
– Uso dell’attributo Route
– Uso dell’attributo RoutePrefix
ASP.NET Web API 2

DEMO
Attribute Routing
Web API 2: Batch API
• Feature introdotta con Web Api 2
• Web Api «Batch Requests»
– Più richieste Web Api in singola Request HTTP
– Singola Response HTTP con risposta a tutte le richieste Web Api

• Numero di chiamate al Server ridotte (round-trip)
+ Performance
+ Scalabilità

• Requisito
– Registrare una «Rotta» per il Batch Handler
ASP.NET Web API 2

DEMO
Batch
Web API 2: IHttpActionResult
• Web Api Response
-

Void

-

Specifica istanza di un oggetto
-

Conversione «automatica» a HttpResponseMessage

-

Creazione «manuale» di un’istanza di HttpResponseMessage

-

NEW! IHttpActionResult
-

Singolo metodo da implementare

-

La sua implementazione fornisce le «istruzioni» di come la Response debba essere
creata, una sorta di HttpResponseMessage «Factory»
Web API 2: IHttpActionResult
• IHttpActionResult
– Minore duplicazione del codice
•

-

es: utilizzo stessa implementazione per Controller diversi

Supporto diretto all’HTML con Razor
-

Definizione di «azioni» il cui risultato può essere facilmente «parsato» dal View
Engine di Razor
ASP.NET Web API 2

DEMO
IHttpActionResult
Web API 2: Cross-Origin Requests
•

Browser Security (Same Origin Policy)
–

Evita che una pagina web possa effettuare richieste Ajax verso un altro dominio

WebService

Web API
http://www.domain1.it

WebClient
Cross-Origin Request

HTML
http://www.domain2.it
Web API 2: Cross-Origin Requests
•

CORS
–

Cross Origin Resource Sharing è uno standard W3C che permette di «rilassare» il
vincolo Same Origin Policy
•

–

Alcune Cross-Origin Request sono accettate, altre sono rifiutate

NEW! Supporto CORS in ASP.NET Web Api 2 (Package NuGet)
•

Abilitazione per Action

•

Abilitazione per Controller

•

Abilitazione a livello Globale

WebService

Web API
http://www.domain1.it

WebClient
Cross-Origin Request

HTML
http://www.domain2.it
ASP.NET Web API 2

DEMO
Cross-Origin Requests (CORS)
Web API 2: External Authentication
•

NEW! External Authentication Services (OAuthOpenIDSocial Media)
–
–

Twitter

–

Facebook

–

•

Microsoft (Windows Live ID Account)

Google

Riduzione tempi di sviluppo nuove applicazioni
–

Perché re-inventare la ruota ogni volta ?

–

Gli utenti non devono creare l’ennesimo account
Web API 2: External Authentication
Web API 2: External Authentication
Web API 2: External Authentication
•

Toolbox
–

Visual Studio 2013

–

Google User Account

–

Developer Account
•

Microsoft Live ID, http://go.microsoft.com/fwlink/?LinkID=144070

•

Twitter, https://dev.twitter.com/

•

Facebook, https://developers.facebook.com/
ASP.NET Web API 2

DEMO
External Authentication
Web API 2: OData
•

Aggiunte le opzioni $expand, $select e $value
–

$expand, permette di ottenere nella stessa Response i dati di entità collegate

–

$select, permette di includere in una Response un sottoinsieme di valori di una o piu’

proprietà di una specifica entità
–

$value, permette di ottenere il valore Raw di una specifica proprietà di un’entità
Web API 2: OData
•

Requirements dei controllers per supportare $select e $expand
– Per azioni che restituiscono collezioni
•

IQueryable

– Per azioni che restituiscono singole entità
•

SingleResult<T>, dove «T» è IQueryable (card. 0..1)

– Decorare il metodo con [Queryable]
Oppure

– EnableQuerySupport in HttpConfiguration
ASP.NET Web API 2

DEMO
OData
Riferimenti
• Visual Studio 2013
– http://www.asp.net/vnext

• ASP.NET Web API 2
– http://www.asp.net/vnext/overview/aspnet-web-api

• OWIN & Katana
– http://www.asp.net/vnext/overview/owin-and-katana
Grazie agli sponsor
Per voi sono solo 10 minuti persi,
per noi è utilissimo per poter
crescere e migliorare!

More Related Content

Viewers also liked

Curso telein1
Curso telein1Curso telein1
Curso telein1
Alex Junior Giron
 
Ihauteriak 2012
Ihauteriak 2012Ihauteriak 2012
Ihauteriak 2012
Eulogio54
 
Carnavales 2011
Carnavales 2011Carnavales 2011
Carnavales 2011Eulogio54
 
ASP.NET Web API
ASP.NET Web APIASP.NET Web API
ASP.NET Web API
Pietro Libro
 
ESR Elevation Might Indicate the Presence of Autoimmune Disease
ESR Elevation Might Indicate the Presence of Autoimmune DiseaseESR Elevation Might Indicate the Presence of Autoimmune Disease
ESR Elevation Might Indicate the Presence of Autoimmune DiseaseESR Stat Plus
 
How an ESR Test Works
How an ESR Test Works How an ESR Test Works
How an ESR Test Works
ESR Stat Plus
 
Conditions That May Require ESR Tests
Conditions That May Require ESR TestsConditions That May Require ESR Tests
Conditions That May Require ESR Tests
ESR Stat Plus
 
2012 по теме взлом вормикс
2012 по теме взлом вормикс2012 по теме взлом вормикс
2012 по теме взлом вормикс
disrenonist1985
 
Wpe pro инструкция вормикс баги
Wpe pro инструкция вормикс багиWpe pro инструкция вормикс баги
Wpe pro инструкция вормикс баги
erecalran1975
 
Права дитини
Права дитиниПрава дитини
Права дитини
Julja Chernenko
 
아이씨엔 매거진- December 2012. Industrial Communication Network MAGAZINE
아이씨엔 매거진- December 2012. Industrial Communication Network MAGAZINE아이씨엔 매거진- December 2012. Industrial Communication Network MAGAZINE
아이씨엔 매거진- December 2012. Industrial Communication Network MAGAZINE
SeungMo Oh
 
Introduzione ai Coded UI Tests
Introduzione ai Coded UI TestsIntroduzione ai Coded UI Tests
Introduzione ai Coded UI Tests
Pietro Libro
 
Guardiões do Ser de Eckhart Tolle
Guardiões do Ser de Eckhart TolleGuardiões do Ser de Eckhart Tolle
Guardiões do Ser de Eckhart Tolle
Luisa Lamas
 
nahim khan carriculam vitas (1).docx.afcf38685ae639f2f031562373e7d6fd.bak
nahim khan carriculam  vitas (1).docx.afcf38685ae639f2f031562373e7d6fd.baknahim khan carriculam  vitas (1).docx.afcf38685ae639f2f031562373e7d6fd.bak
nahim khan carriculam vitas (1).docx.afcf38685ae639f2f031562373e7d6fd.bakMohammad Nahim
 

Viewers also liked (17)

Curso telein1
Curso telein1Curso telein1
Curso telein1
 
30120130406007
3012013040600730120130406007
30120130406007
 
Ihauteriak 2012
Ihauteriak 2012Ihauteriak 2012
Ihauteriak 2012
 
Carnavales 2011
Carnavales 2011Carnavales 2011
Carnavales 2011
 
ASP.NET Web API
ASP.NET Web APIASP.NET Web API
ASP.NET Web API
 
ESR Elevation Might Indicate the Presence of Autoimmune Disease
ESR Elevation Might Indicate the Presence of Autoimmune DiseaseESR Elevation Might Indicate the Presence of Autoimmune Disease
ESR Elevation Might Indicate the Presence of Autoimmune Disease
 
How an ESR Test Works
How an ESR Test Works How an ESR Test Works
How an ESR Test Works
 
Conditions That May Require ESR Tests
Conditions That May Require ESR TestsConditions That May Require ESR Tests
Conditions That May Require ESR Tests
 
2012 по теме взлом вормикс
2012 по теме взлом вормикс2012 по теме взлом вормикс
2012 по теме взлом вормикс
 
Wpe pro инструкция вормикс баги
Wpe pro инструкция вормикс багиWpe pro инструкция вормикс баги
Wpe pro инструкция вормикс баги
 
LNL Testmionial Aurora
LNL Testmionial AuroraLNL Testmionial Aurora
LNL Testmionial Aurora
 
Права дитини
Права дитиниПрава дитини
Права дитини
 
아이씨엔 매거진- December 2012. Industrial Communication Network MAGAZINE
아이씨엔 매거진- December 2012. Industrial Communication Network MAGAZINE아이씨엔 매거진- December 2012. Industrial Communication Network MAGAZINE
아이씨엔 매거진- December 2012. Industrial Communication Network MAGAZINE
 
98 camp21
98 camp2198 camp21
98 camp21
 
Introduzione ai Coded UI Tests
Introduzione ai Coded UI TestsIntroduzione ai Coded UI Tests
Introduzione ai Coded UI Tests
 
Guardiões do Ser de Eckhart Tolle
Guardiões do Ser de Eckhart TolleGuardiões do Ser de Eckhart Tolle
Guardiões do Ser de Eckhart Tolle
 
nahim khan carriculam vitas (1).docx.afcf38685ae639f2f031562373e7d6fd.bak
nahim khan carriculam  vitas (1).docx.afcf38685ae639f2f031562373e7d6fd.baknahim khan carriculam  vitas (1).docx.afcf38685ae639f2f031562373e7d6fd.bak
nahim khan carriculam vitas (1).docx.afcf38685ae639f2f031562373e7d6fd.bak
 

Similar to Visual Studio 2013 - A New kind In Town - ASP.NET Web Api 2

Working with http client rest apis and connection availability check
Working with http client rest apis and connection availability checkWorking with http client rest apis and connection availability check
Working with http client rest apis and connection availability check
Michele Aponte
 
WeWantWeb - WCF Data Services
WeWantWeb - WCF Data ServicesWeWantWeb - WCF Data Services
WeWantWeb - WCF Data Services
DomusDotNet
 
SVILUPPO DI SERVIZI REST PER ANDROID
SVILUPPO DI SERVIZI REST PER ANDROIDSVILUPPO DI SERVIZI REST PER ANDROID
SVILUPPO DI SERVIZI REST PER ANDROID
Luca Masini
 
Sviluppo di servizi REST per Android - Luca Masini
Sviluppo di servizi REST per Android - Luca Masini Sviluppo di servizi REST per Android - Luca Masini
Sviluppo di servizi REST per Android - Luca Masini Whymca
 
Asp net (versione 1 e 2)
Asp net (versione 1 e 2)Asp net (versione 1 e 2)
Asp net (versione 1 e 2)
Felice Pescatore
 
Self hosted Services with .NET OWin
Self hosted Services with .NET OWinSelf hosted Services with .NET OWin
Self hosted Services with .NET OWin
Nicolò Carandini
 
REST API fantastiche e dove trovarle
REST API fantastiche e dove trovarleREST API fantastiche e dove trovarle
REST API fantastiche e dove trovarle
Marco Breveglieri
 
Applicazioni web con ASP.NET Owin e Katana
Applicazioni web con ASP.NET Owin e KatanaApplicazioni web con ASP.NET Owin e Katana
Applicazioni web con ASP.NET Owin e Katana
Nicolò Carandini
 
Architetture web - Linguaggi e standard - Web server, application server, dat...
Architetture web - Linguaggi e standard - Web server, application server, dat...Architetture web - Linguaggi e standard - Web server, application server, dat...
Architetture web - Linguaggi e standard - Web server, application server, dat...
Fulvio Corno
 
Applicazioni RESTful con ASP.NET Web Api
Applicazioni RESTful con ASP.NET Web ApiApplicazioni RESTful con ASP.NET Web Api
Applicazioni RESTful con ASP.NET Web Api
Pietro Libro
 
Le Applicazioni di Internet Web, FTP, Posta e App pr il Mobile
Le Applicazioni di Internet Web, FTP, Posta e App pr il MobileLe Applicazioni di Internet Web, FTP, Posta e App pr il Mobile
Le Applicazioni di Internet Web, FTP, Posta e App pr il Mobile
I.S.I.S. "Antonio Serra" - Napoli
 
.NET Core, ASP.NET Core e Linux per il Mobile
.NET Core, ASP.NET Core e Linux per il Mobile.NET Core, ASP.NET Core e Linux per il Mobile
.NET Core, ASP.NET Core e Linux per il Mobile
Pietro Libro
 
ASP.NET Core Services e Linux per il Mobile - Pietro Libro - Codemotion Rome...
ASP.NET Core Services e Linux per il Mobile  - Pietro Libro - Codemotion Rome...ASP.NET Core Services e Linux per il Mobile  - Pietro Libro - Codemotion Rome...
ASP.NET Core Services e Linux per il Mobile - Pietro Libro - Codemotion Rome...
Codemotion
 
Back to the Future: Migrare da WebForm ad ASP.NET Core gradualmente
Back to the Future: Migrare da WebForm ad ASP.NET Core gradualmente Back to the Future: Migrare da WebForm ad ASP.NET Core gradualmente
Back to the Future: Migrare da WebForm ad ASP.NET Core gradualmente
Andrea Dottor
 
Corso 3 giorni Angular 2+
Corso 3 giorni Angular 2+Corso 3 giorni Angular 2+
Corso 3 giorni Angular 2+
Emanuele Benedetti
 
Powerful asp.net 4 e ie9
Powerful asp.net 4 e ie9Powerful asp.net 4 e ie9
Powerful asp.net 4 e ie9
Stefano Benedetti
 
Sviluppare Azure Web Apps
Sviluppare Azure Web AppsSviluppare Azure Web Apps
Sviluppare Azure Web Apps
Andrea Dottor
 
La nostra infrastruttura di produzione a container con Docker, Rancher e ZFS
La nostra infrastruttura di produzione a container con Docker, Rancher e ZFSLa nostra infrastruttura di produzione a container con Docker, Rancher e ZFS
La nostra infrastruttura di produzione a container con Docker, Rancher e ZFS
Morlini Gabriele
 

Similar to Visual Studio 2013 - A New kind In Town - ASP.NET Web Api 2 (20)

Working with http client rest apis and connection availability check
Working with http client rest apis and connection availability checkWorking with http client rest apis and connection availability check
Working with http client rest apis and connection availability check
 
WeWantWeb - WCF Data Services
WeWantWeb - WCF Data ServicesWeWantWeb - WCF Data Services
WeWantWeb - WCF Data Services
 
SVILUPPO DI SERVIZI REST PER ANDROID
SVILUPPO DI SERVIZI REST PER ANDROIDSVILUPPO DI SERVIZI REST PER ANDROID
SVILUPPO DI SERVIZI REST PER ANDROID
 
Sviluppo di servizi REST per Android - Luca Masini
Sviluppo di servizi REST per Android - Luca Masini Sviluppo di servizi REST per Android - Luca Masini
Sviluppo di servizi REST per Android - Luca Masini
 
Asp.Net MVC 5
Asp.Net MVC 5Asp.Net MVC 5
Asp.Net MVC 5
 
Asp net (versione 1 e 2)
Asp net (versione 1 e 2)Asp net (versione 1 e 2)
Asp net (versione 1 e 2)
 
Self hosted Services with .NET OWin
Self hosted Services with .NET OWinSelf hosted Services with .NET OWin
Self hosted Services with .NET OWin
 
REST API fantastiche e dove trovarle
REST API fantastiche e dove trovarleREST API fantastiche e dove trovarle
REST API fantastiche e dove trovarle
 
Applicazioni web con ASP.NET Owin e Katana
Applicazioni web con ASP.NET Owin e KatanaApplicazioni web con ASP.NET Owin e Katana
Applicazioni web con ASP.NET Owin e Katana
 
Architetture web - Linguaggi e standard - Web server, application server, dat...
Architetture web - Linguaggi e standard - Web server, application server, dat...Architetture web - Linguaggi e standard - Web server, application server, dat...
Architetture web - Linguaggi e standard - Web server, application server, dat...
 
Applicazioni RESTful con ASP.NET Web Api
Applicazioni RESTful con ASP.NET Web ApiApplicazioni RESTful con ASP.NET Web Api
Applicazioni RESTful con ASP.NET Web Api
 
Web services
Web servicesWeb services
Web services
 
Le Applicazioni di Internet Web, FTP, Posta e App pr il Mobile
Le Applicazioni di Internet Web, FTP, Posta e App pr il MobileLe Applicazioni di Internet Web, FTP, Posta e App pr il Mobile
Le Applicazioni di Internet Web, FTP, Posta e App pr il Mobile
 
.NET Core, ASP.NET Core e Linux per il Mobile
.NET Core, ASP.NET Core e Linux per il Mobile.NET Core, ASP.NET Core e Linux per il Mobile
.NET Core, ASP.NET Core e Linux per il Mobile
 
ASP.NET Core Services e Linux per il Mobile - Pietro Libro - Codemotion Rome...
ASP.NET Core Services e Linux per il Mobile  - Pietro Libro - Codemotion Rome...ASP.NET Core Services e Linux per il Mobile  - Pietro Libro - Codemotion Rome...
ASP.NET Core Services e Linux per il Mobile - Pietro Libro - Codemotion Rome...
 
Back to the Future: Migrare da WebForm ad ASP.NET Core gradualmente
Back to the Future: Migrare da WebForm ad ASP.NET Core gradualmente Back to the Future: Migrare da WebForm ad ASP.NET Core gradualmente
Back to the Future: Migrare da WebForm ad ASP.NET Core gradualmente
 
Corso 3 giorni Angular 2+
Corso 3 giorni Angular 2+Corso 3 giorni Angular 2+
Corso 3 giorni Angular 2+
 
Powerful asp.net 4 e ie9
Powerful asp.net 4 e ie9Powerful asp.net 4 e ie9
Powerful asp.net 4 e ie9
 
Sviluppare Azure Web Apps
Sviluppare Azure Web AppsSviluppare Azure Web Apps
Sviluppare Azure Web Apps
 
La nostra infrastruttura di produzione a container con Docker, Rancher e ZFS
La nostra infrastruttura di produzione a container con Docker, Rancher e ZFSLa nostra infrastruttura di produzione a container con Docker, Rancher e ZFS
La nostra infrastruttura di produzione a container con Docker, Rancher e ZFS
 

Visual Studio 2013 - A New kind In Town - ASP.NET Web Api 2

  • 1. ASP.NET Web API 2 Pietro Libro http://blogs.ugidotnet.org/PietroLibroBlog pietro.libro@domusdotnet.org http://www.linkedin.com/in/pietrolibro
  • 2. Agenda • Web API: – REST in pillole • Web API 2, novità: – Attribute Routing – Batch Requests – IHttpActionResult – Cross-Origin Requests (CORS) – External Authentication Services – Nuove features per OData
  • 3. REST in “Pillole” – Architettura software per sistemi di ipertesto distribuiti come il WWW – Principi che delineano come le risorse sono definite ed indirizzate – Risorsa • Univocamente indirizzabile tramite URI • Stato dell’applicazione e funzionalità – Protocollo: • Client-Server • Stateless • Cachable • A livelli – HTTPHTTPS
  • 4. Web API 2: Attribute Routing • Routing: Match tra URI ed azioni • (V1) Routing basato su convenzioni – Difficile (non impossibile ) mappare URI del tipo Cliente/1/Ordini • NEW! Routing basato su attributi – URI User Friendly che descrivono risorse eo gerarchie di risorse – Api Versioning • APIV1Clienti • APIV2Clienti
  • 5. Web API 2: Attribute Routing • NEW! Routing basato su attributi – Overloaded URI segments • Ordini/1 • Ordini/Pending – Multiple Parameter Types • Ordini/1 • Ordini/29/11/2013 – Routing Constraints
  • 6. Web API 2: Attribute Routing • «Attivare» Attribute Routing – MapHttpAttributeRoutes() in WebApiConfig – Uso dell’attributo Route – Uso dell’attributo RoutePrefix
  • 7. ASP.NET Web API 2 DEMO Attribute Routing
  • 8. Web API 2: Batch API • Feature introdotta con Web Api 2 • Web Api «Batch Requests» – Più richieste Web Api in singola Request HTTP – Singola Response HTTP con risposta a tutte le richieste Web Api • Numero di chiamate al Server ridotte (round-trip) + Performance + Scalabilità • Requisito – Registrare una «Rotta» per il Batch Handler
  • 9. ASP.NET Web API 2 DEMO Batch
  • 10. Web API 2: IHttpActionResult • Web Api Response - Void - Specifica istanza di un oggetto - Conversione «automatica» a HttpResponseMessage - Creazione «manuale» di un’istanza di HttpResponseMessage - NEW! IHttpActionResult - Singolo metodo da implementare - La sua implementazione fornisce le «istruzioni» di come la Response debba essere creata, una sorta di HttpResponseMessage «Factory»
  • 11. Web API 2: IHttpActionResult • IHttpActionResult – Minore duplicazione del codice • - es: utilizzo stessa implementazione per Controller diversi Supporto diretto all’HTML con Razor - Definizione di «azioni» il cui risultato può essere facilmente «parsato» dal View Engine di Razor
  • 12. ASP.NET Web API 2 DEMO IHttpActionResult
  • 13. Web API 2: Cross-Origin Requests • Browser Security (Same Origin Policy) – Evita che una pagina web possa effettuare richieste Ajax verso un altro dominio WebService Web API http://www.domain1.it WebClient Cross-Origin Request HTML http://www.domain2.it
  • 14. Web API 2: Cross-Origin Requests • CORS – Cross Origin Resource Sharing è uno standard W3C che permette di «rilassare» il vincolo Same Origin Policy • – Alcune Cross-Origin Request sono accettate, altre sono rifiutate NEW! Supporto CORS in ASP.NET Web Api 2 (Package NuGet) • Abilitazione per Action • Abilitazione per Controller • Abilitazione a livello Globale WebService Web API http://www.domain1.it WebClient Cross-Origin Request HTML http://www.domain2.it
  • 15. ASP.NET Web API 2 DEMO Cross-Origin Requests (CORS)
  • 16. Web API 2: External Authentication • NEW! External Authentication Services (OAuthOpenIDSocial Media) – – Twitter – Facebook – • Microsoft (Windows Live ID Account) Google Riduzione tempi di sviluppo nuove applicazioni – Perché re-inventare la ruota ogni volta ? – Gli utenti non devono creare l’ennesimo account
  • 17. Web API 2: External Authentication
  • 18. Web API 2: External Authentication
  • 19. Web API 2: External Authentication • Toolbox – Visual Studio 2013 – Google User Account – Developer Account • Microsoft Live ID, http://go.microsoft.com/fwlink/?LinkID=144070 • Twitter, https://dev.twitter.com/ • Facebook, https://developers.facebook.com/
  • 20. ASP.NET Web API 2 DEMO External Authentication
  • 21. Web API 2: OData • Aggiunte le opzioni $expand, $select e $value – $expand, permette di ottenere nella stessa Response i dati di entità collegate – $select, permette di includere in una Response un sottoinsieme di valori di una o piu’ proprietà di una specifica entità – $value, permette di ottenere il valore Raw di una specifica proprietà di un’entità
  • 22. Web API 2: OData • Requirements dei controllers per supportare $select e $expand – Per azioni che restituiscono collezioni • IQueryable – Per azioni che restituiscono singole entità • SingleResult<T>, dove «T» è IQueryable (card. 0..1) – Decorare il metodo con [Queryable] Oppure – EnableQuerySupport in HttpConfiguration
  • 23. ASP.NET Web API 2 DEMO OData
  • 24. Riferimenti • Visual Studio 2013 – http://www.asp.net/vnext • ASP.NET Web API 2 – http://www.asp.net/vnext/overview/aspnet-web-api • OWIN & Katana – http://www.asp.net/vnext/overview/owin-and-katana
  • 26. Per voi sono solo 10 minuti persi, per noi è utilissimo per poter crescere e migliorare!