introducción a open platform - la api rest de mercado libre
TRANSCRIPT
Agosto 2016
First 90Introducción al API Rest
DevConf
This is our visionBuilding the foundation to Build a 3B Company by FY20
Agenda
+ Contexto General
+ Rest Full API
+ Conceptos
+ Testing de Aplicaciones & Tools
Contexto
This is our visionBuilding the foundation to Build a 3B Company by FY20
Ecosistema● +3000 búsquedas por
segundo
● +2200 Servidores Virtuales (Webservers, Jobs, workers, etc)
● +25 millones request/min
● +85 bases de datos
This is our visionBuilding the foundation to Build a 3B Company by FY20
Estado de Situación -> MonolíticoDependencia en el
desarrollo. Un solo repositorio
Arquitectura Monolítica. Un solo ejecutable para el
delivery
Pasos a producción Caóticos
Imposibilidad de acceso a los recursos desde el
exterior
Velocidad en el desarrollo
Escalar el equipo?
Una sola tecnología base/ infinidad de casos de test
This is our visionBuilding the foundation to Build a 3B Company by FY20
Proceso de Migración● Comemos el pescado que vendemos● Compartimos el Api que usamos para el front
This is our visionBuilding the foundation to Build a 3B Company by FY20
Cambios en producción
● Cambios en producción cada 2 semanas
● Cambios en producción 400 por dia
This is our visionBuilding the foundation to Build a 3B Company by FY20
Resultado
● Arquitectura Distribuida● Independencia entre
Departamentos ● Independencia de Tecnologías
API
This is our visionBuilding the foundation to Build a 3B Company by FY20
Rest full
api.mercadolibre.com/users/items/orders
This is our visionBuilding the foundation to Build a 3B Company by FY20
Recursos = URL
/pictures/users/items/orders
/sites/MCO/search
/orders
This is our visionBuilding the foundation to Build a 3B Company by FY20
API
This is our visionBuilding the foundation to Build a 3B Company by FY20
API -Estándar del protocolo
https://api.mercadolibre.com/sites/MCO
This is our visionBuilding the foundation to Build a 3B Company by FY20
Http Status
This is our visionBuilding the foundation to Build a 3B Company by FY20
Http Status
This is our visionBuilding the foundation to Build a 3B Company by FY20
Http Status
This is our visionBuilding the foundation to Build a 3B Company by FY20
Http Status
This is our visionBuilding the foundation to Build a 3B Company by FY20
Http Status
This is our visionBuilding the foundation to Build a 3B Company by FY20
Http Status
This is our visionBuilding the foundation to Build a 3B Company by FY20
JSON response
GET a https://api.mercadolibre.com/sites/MCO
Conceptos
This is our visionBuilding the foundation to Build a 3B Company by FY20
Https
This is our visionBuilding the foundation to Build a 3B Company by FY20
Recursos Públicos
GET a https://api.mercadolibre.com/users/1979477
54
This is our visionBuilding the foundation to Build a 3B Company by FY20
Recursos Privados
GET https://api.mercadolibre.com/users/197947754?access_token=APP_USR
This is our visionBuilding the foundation to Build a 3B Company by FY20
This is our visionBuilding the foundation to Build a 3B Company by FY20
2.8 K
This is our visionBuilding the foundation to Build a 3B Company by FY20
Selección - Json Item Atributos
https://api.mercadolibre.com/items/MCO425476205?attributes=id,title,price
839 B
Testing & Tools
This is our visionBuilding the foundation to Build a 3B Company by FY20
Testing de Aplicación
http://developers.mercadolibre.com/es/realiza-pruebas/
This is our visionBuilding the foundation to Build a 3B Company by FY20
Tools
http://developers.mercadolibre.com/es/herramientas/
This is our visionBuilding the foundation to Build a 3B Company by FY20
This is our visionBuilding the foundation to Build a 3B Company by FY20
This is our visionBuilding the foundation to Build a 3B Company by FY20
This is our visionBuilding the foundation to Build a 3B Company by FY20
¿Qué podemos hacer con el API?
This is our visionBuilding the foundation to Build a 3B Company by FY20
Homologando mi App
http://apps.mercadolibre.com/
This is our visionBuilding the foundation to Build a 3B Company by FY20
Catálogo de Apps
?
MuchasGracias
Applications
Cómo afrontó una integración?
This is our visionBuilding the foundation to Build a 3B Company by FY20
developers.mercadolibre.com
This is our visionBuilding the foundation to Build a 3B Company by FY20
Cómo comenzar ….
applications.mercadolibre.com.co
This is our visionBuilding the foundation to Build a 3B Company by FY20
Cómo comenzar ….
This is our visionBuilding the foundation to Build a 3B Company by FY20
Cómo comenzar ….
This is our visionBuilding the foundation to Build a 3B Company by FY20
configuración de la notificación
This is our visionBuilding the foundation to Build a 3B Company by FY20
Multiget
This is our visionBuilding the foundation to Build a 3B Company by FY20
Multiget
/items/MLA629112495
/items/MLA623745283
/items/MLA616341170
/items/MLA623745173
X 4
This is our visionBuilding the foundation to Build a 3B Company by FY20
Multiget
/items?ids=MLA629112495,MLA623745283,MLA616341170, MLA623745173
X 1
This is our visionBuilding the foundation to Build a 3B Company by FY20
Multiget + Selección
/items?
ids=MLA629112495,MLA623745283,MLA616341170,MLA623745173&attributes=id,title,price,picture
5X más rápido10X más corto