magnet rest2mobile: turn rest apis into mobile sdks (ios, android & js)
DESCRIPTION
Silicon Valley Enterprise Mobile Developers Meetup - Nov. 5, 2014 Agenda: - Drink & pizzas (until 6:30pm) - Xen.do: Dominic Lee, Co-Founder & CTO - From REST APIs to Mobile apps - Demo – rest2mobile - Q&ATRANSCRIPT
© 2014 Magnet Systems Inc. Confidential & Proprietary. Mobilize Your Enterprise 1
M o b i l i z e Yo u r E n t e r p r i s e .
© 2014 Magnet Systems Inc. Confidential & Proprietary. 1
Silicon Valley Enterprise Mobile Developers
Build your own mobile SDK for your connected apps
© 2014 Magnet Systems Inc. Confidential & Proprietary. Mobilize Your Enterprise 2
Agenda
• Drink & pizzas (until 6:30pm)• Xen.do: Dominic Lee, Co-Founder & CTO• From REST APIs to Mobile apps• Demo – rest2mobile• Q & A
© 2014 Magnet Systems Inc. Confidential & Proprietary. Mobilize Your Enterprise 3
Magnet
• Enterprise Mobile Middleware• Founded by Alfred Chuang ���
(CEO, BEA Systems)• Recently exited stealth mode
We enable enterprises to ���
develop, deploy and distribute���
TRUE ENTERPRISE GRADE
mobile apps
© 2014 Magnet Systems Inc. Confidential & Proprietary. Mobilize Your Enterprise 4
M o b i l i z e Yo u r E n t e r p r i s e .
© 2014 Magnet Systems Inc. Confidential & Proprietary. 4
From REST APIs to Mobile apps
© 2014 Magnet Systems Inc. Confidential & Proprietary. Mobilize Your Enterprise 5
APIs are everywhere
• Providers expose services as APIs• REST/JSON is the de-facto standard• Developers can build truly personalized
experiences
© 2014 Magnet Systems Inc. Confidential & Proprietary. Mobilize Your Enterprise 6
The new world of connected apps
• Consumer apps connect to 5 to 6 services– FB, Twitter, LinkedIn, etc.
• Enterprise apps integrate with various back-ends (CRM, ERP, Ecommerce, etc.) and cloud services (sf.com, Box, vertical service providers, etc.)
© 2014 Magnet Systems Inc. Confidential & Proprietary. Mobilize Your Enterprise 7
Integrating with REST Services
• Connecting to REST APIs is a fairly convoluted process:1. Remote connections2. Data marshaling/un-marshaling3. Exception handling4. API maintenance
© 2014 Magnet Systems Inc. Confidential & Proprietary. Mobilize Your Enterprise 8
Integrating with REST Services
• Developers spend a lot of time writing code to consume APIs• Keeping mobile SDKs in sync can be a nightmare
© 2014 Magnet Systems Inc. Confidential & Proprietary. Mobilize Your Enterprise 9
The solutions
• Swagger• Retrofit• APIMatic.io• rest2mobile
© 2014 Magnet Systems Inc. Confidential & Proprietary. Mobilize Your Enterprise 10
rest2mobile
• Mobile focused– Android, iOS & JS
• No specification required– Generate directly from REST examples– Create code from live API calls or from documentation
• Modular code generation
© 2014 Magnet Systems Inc. Confidential & Proprietary. Mobilize Your Enterprise 11
REST by Example+name googleDistance +Request h"p://maps.googleapis.com/maps/api/distancematrix/json?origins=435+Tasso+Street+Palo+Alto+CA&desBnaBons=Embarcadero+Street+San+Francisco+CA&sensor=false&mode=driving&language=en&units=imperial +Response +Content-‐type applica6on/json +Headers token : sdaKiodsfsad +Body { "desBnaBon_addresses" : [ "Embarcadero, 298 Market Street, San Francisco, CA 94111, USA" ], "origin_addresses" : [ "435 Tasso Street, Palo Alto, CA 94301, USA" ], "rows" : [ { "elements" : [ { "distance" : { "text" : "33.1 mi", "value" : "53242" }, "duraBon" : { "text" : "42 mins", "value" : "2512" }, "status" : "OK" } ] } ], "status" : "OK" }
© 2014 Magnet Systems Inc. Confidential & Proprietary. Mobilize Your Enterprise 12
Simplicity
• Type-safe mobile code
© 2014 Magnet Systems Inc. Confidential & Proprietary. Mobilize Your Enterprise 13
For mobile developers
• Built with mobile developer experience in mind:– Plugins for the IDEs: Xcode & Android Studio/IntelliJ IDEA• Keep the developer in the IDE – Maximize flow• Refactoring made easy• Async/call-backs
– Command line for multi-language scripting & automation
© 2014 Magnet Systems Inc. Confidential & Proprietary. Mobilize Your Enterprise 14
Rest2mobile in a nutshell
• Open Source – Mobile SDKs (iOS, Andrdoid and JS)– Plugins and CLI available on Github– Apache License, Version 2.0
• Easy on-boarding– Library of REST API examples
© 2014 Magnet Systems Inc. Confidential & Proprietary. Mobilize Your Enterprise 15
M o b i l i z e Yo u r E n t e r p r i s e .
© 2014 Magnet Systems Inc. Confidential & Proprietary. 15
rest2mobile – Demo������
https://developer.magnet.com/
© 2014 Magnet Systems Inc. Confidential & Proprietary. Mobilize Your Enterprise 16
rest2mobile - Survey
https://www.surveymonkey.com/s/3PF8C7J
Contact: Pascal JaillonSr. Director, Technical Product Management