33
TURN YOUR GOOGLE SPREADSHEET INTO A CUSTOM API Full stack PaaS for web APIs http://apispark.com May 27, 2014

20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

  • Upload
    restlet

  • View
    491

  • Download
    0

Embed Size (px)

DESCRIPTION

1) Overview of APISpark (5’) 2) Google Spreadsheet wrapper (5’) 3) Hands-on lab (40’) - Sign in to APISpark - Prepare the Google Spreadsheet - Create the Data Store wrapper - Export the Custom Web API

Citation preview

Page 1: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

TURN YOUR GOOGLE SPREADSHEET

INTO A CUSTOM API

Full stack PaaS for web APIshttp://apispark.com

May 27, 2014

Page 2: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

PRESENTERENTREPRENEUR AND WEB API EXPERT

Jérôme LOUVEL CEO of Restlet

12 years of experience in software (EU and US)

Restlet Framework creator (2005)

JAX-RS 1.0 expert in JCP (JSR-311)

Contributor to “RESTful Web Services” (O’Reilly)

Co-author of “Restlet in Action” (Manning)

Contact

[email protected]

Twitter : @jlouvel

Blog : blog.restlet.com

Page 3: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

AGENDA

1) Overview of APISpark (5’)

2) Google Spreadsheet wrapper (5’)

3) Hands-on lab (40’)– Sign in to APISpark

– Prepare the Google Spreadsheet

– Create the Data Store wrapper

– Export the Custom Web API

Page 4: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

1) OVERVIEW OF APISPARK

Page 5: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

WEB API PROJECTTYPICAL LIFE CYCLE

Create Host Manage Use Promote

1) Do It Yourself (DIY)

long, risky, expensive but highly flexible

2) Platform as a Service (PaaS)

integrated, fast, cost effective

Page 6: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

APISPARK PLATFORMAVAILABLE IN PUBLIC BETA

Send us your feed-back and help us making it the best PaaS for Web APIs !

Page 7: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

COMPOSING APISPARK CELLS

Entity Store File Store

Custom API

Java iOS JS

HTTP HTTP

Page 8: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

STRUCTURE OF WEB APIS

API Contract

Implementation

Runtime

Web API

template

Completeweb API

HTTP HTTPS

Page 9: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

SOCIAL LOGIN

Page 10: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

YOUR DASHBOARD

Page 11: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

ENTITY STORE CREATION

Page 12: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

ENTITY PROPERTIES

Page 13: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

2) GOOGLE SPREADSHEET WRAPPER

Page 14: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

REEXPOSING A SPREADSHEET

Entity Store

Custom API

HTTP HTTP

Google Spreadsheet

Page 15: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

MAPPING TABLE

Google Docs APISpark

Spread sheet Entity Store

Work sheet * Entity *

Column * Entity property *

First row Entity property names

Next rows Entity instances

Page 16: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

FEATURES

Work in both read and write modes– your data always stays in sync

Your data can be updated– directly in the Google Spreadsheet

– via the Custom Web APIs

Additional security layer– your main Google password isn’t exposed

– you control who has access to the custom API

Page 17: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

3) HANDS-ON LAB

Page 18: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

YOUR STEPS

1. Prepare the Google Spreadsheet

2. Configure the Entity Store Wrapper

3. Deploy the Web API

4. Invoke the Web API

Follow this detailed tutorial

– https://apispark.com/docs/tutorials/google-spreadsheet

Page 19: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

1. PREPARE THE GOOGLE SPREADSHEET

Page 20: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

2. CONFIGURE THE ENTITY STORE WRAPPER

Page 21: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

ENABLE 2-STEPS AUTHENTICATION !ON YOUR GOOGLE ACCOUNT

Page 22: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

TEST YOUR GOOGLE CREDENTIALS

Page 23: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

IMPORT A SPREAD SHEET

Page 24: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

UPDATE WORK SHEETS

Page 25: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

ADD ENTITIES

Page 26: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

DISPLAY WRAPPED ENTITIES

Page 27: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

UPDATE MAPPING IF NECESSARY

Page 28: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

DEPLOY YOUR ENTITY STORE

Page 29: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

3. DEPLOY THE WEB API

Page 30: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

DISPLAY EXPORTED CUSTOM API

Page 31: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

DEPLOY THE CUSTOM API

Page 32: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

4. INVOKE THE WEB API

Page 33: 20140527 APIcon SF - Workshop #1 - Spreadsheet to Custom API

KEEP IN TOUCH!

http://restlet.com

http://blog.restlet.com

Twitter: @jlouvel

[email protected]

Leading web API platform for Java