30
APIs HTTP + Windows Azure Una combinación ganadora

API HTTP + Windows Azure

Embed Size (px)

Citation preview

Page 1: API HTTP + Windows Azure

APIs HTTP + Windows Azure

Una combinación ganadora

Page 2: API HTTP + Windows Azure

NICOLÁS HERRERAhttp://nicolocodev.com

[email protected]

Twitter: @nicolocodev

Microsoft MVP Visual C#

Page 3: API HTTP + Windows Azure

¿APIsHTTP?

Page 4: API HTTP + Windows Azure

¿APIsHTTP?

Application Programming

Interface

Interoperabilidad

Hablar con otros productos

y servicios

La era de los dispositivos y

servicios

Page 5: API HTTP + Windows Azure

¿De donde venimos?

Page 6: API HTTP + Windows Azure
Page 7: API HTTP + Windows Azure
Page 8: API HTTP + Windows Azure
Page 9: API HTTP + Windows Azure

SOAP

vs

REST

Pretende ser un protocolo

Estilo de arquitectura

Fuerte acoplamiento entre cliente y servidor

Cero acoplamiento

WSDL (Web Services Description Language)

HAETOAS Hypermedia as the Engine of Application

State

RPC

Recursos – URLs – Verbos HTTP

Interfaz uniforme

Page 10: API HTTP + Windows Azure

No llames REST a

cualquier API HTTP

que no sea SOAP

Page 11: API HTTP + Windows Azure

¿Qué se

ha

hecho

en .NET?

WEB Services (ASMX): SOAP – XML,

HTTP, IIS

WCF: SOAP – XML, Múltiples

protocolos

ASP.NET WEB API (IIS – Self Host)

Rest Starter Kit: oss en codeplex

WCF 4

Owin

Page 12: API HTTP + Windows Azure

Entremos de lleno en

ASP.NET WEB API

DEMO: FILE -> New Project

Page 13: API HTTP + Windows Azure

Modelo y controlador

Page 14: API HTTP + Windows Azure

Retornar datos

Page 15: API HTTP + Windows Azure

Routing

Page 16: API HTTP + Windows Azure

Attribute Routing

Page 17: API HTTP + Windows Azure

Manipulando respuestas HTTP

Page 18: API HTTP + Windows Azure

Manipulating HTTP Responses

A successful API call returns an HTTP OK and the JSON data

Page 19: API HTTP + Windows Azure

Manipulating HTTP Responses

An unsuccessful API call returns an HTTP 404 (and no JSON)

Page 20: API HTTP + Windows Azure

Enviando Datos a Web API

Page 21: API HTTP + Windows Azure

Enviando Datos a Web API

Page 22: API HTTP + Windows Azure

¿Quién

consume estas

Apis?

Page 23: API HTTP + Windows Azure

¿Y Windows

Azure?

Page 24: API HTTP + Windows Azure

Windows

Azure

La respuesta de Microsoft a la

demanda de cloud compunting

Siempre Disponible. Siempre!

Plataforma como servicio administrada

por Microsoft

Abierto y flexible

Capacidad de computo y

almacenamiento ilimitado

Pay as you go!

Page 25: API HTTP + Windows Azure

¿Qué ofrece Windows Azure?

Page 26: API HTTP + Windows Azure

¿Qué escoger?

Page 27: API HTTP + Windows Azure

Demo Windows

Azure

Page 28: API HTTP + Windows Azure

Windows Azure

Mobile Services

Tu api en segundos

Page 29: API HTTP + Windows Azure

GRACIAS

Page 30: API HTTP + Windows Azure

NICOLÁS HERRERAhttp://nicolocodev.com

[email protected]

Twitter: @nicolocodev

Microsoft MVP Visual C#