But Why? Use Cases for the REST API

18
BUT WHY? 10 USE CASES FOR THE REST API WORDCAMP BOSTON 2017 http://wherethelongtailends.com/ray-harryhausen-jason-and-the-argonauts-1963/ @jeckman | #wcbos

Transcript of But Why? Use Cases for the REST API

B U T W H Y ? 1 0 U S E C A S E S F O R T H E R E S T A P I

W O R D C A M P B O S T O N 2 0 1 7

http://wherethelongtailends.com/ray-harryhausen-jason-and-the-argonauts-1963/

@jeckman | #wcbos

A K A “ W H O I S J S O N , A N D W H Y D O I C A R E H O W M U C H R E S T H E G E T S ? ”

https://hammer.ucla.edu/programs-events/2012/02/family-flicks-film-series-jason-and-the-argonauts/

@jeckman | #wcbos

1 . H E A D L E S S

• Dynamic, app-like user experience

• Pace Layering: change front end more frequently

• Reduce attack surface

https://en.wikipedia.org/wiki/Headless_Horseman

@jeckman | #wcbos

2 . M U LT I - H E A D E D

• Customized experiences for different audiences

• Single instance of content, editorial, and workflow

• Serve clients, partners, employees, or different segments

http://www.darkrealmfox.com/film_reviews/blu-ray-screencaps-jason-and-the-argonauts/

@jeckman | #wcbos

3 . I N F R A S T R U C T U R E

• WordPress as one service among many others

• Multiple inputs & outputs

• Likely incorporates headless/multiheaded

https://en.wikipedia.org/wiki/Argonautica

@jeckman | #wcbos

4 . I N - S I T E C O N T E N T

• Load more (“infinite scroll”)

• Filtered / faceted search results (w/ ElasticPress)

• Related stories / recirculation

• Sponsored content / native advertising

@jeckman | #wcbos

5 . C R O S S - S I T E C O N T E N T

• Syndication (Push or Pull) across sites in a network

• Pull based on taxonomy, post type endpoint

• Admin experience to “push” article I am viewing to a site to which I have permissions

• Including sites NOT on multisite / not using WP

https://hammer.ucla.edu/programs-events/2012/02/family-flicks-film-series-jason-and-the-argonauts/

@jeckman | #wcbos

6 . I M P R O V E D A U T H O R E X P E R I E N C E

• Creating complex content types

• Infrequent user forms & guided wizards

• Embedding content creation in existing workflows

http://www.bbc.co.uk/programmes/b00kys2s

@jeckman | #wcbos

7. I M P R O V E D E D I T O R E X P E R I E N C E

• Replacement dashboards (à la Calypso)

• Better management of relationships across post types

• Sorting / Deleting / Updating in batches

• Curation - selecting and ordering content

https://writerlovesmovies.com/2012/10/26/30-days-30-classics-day-23-jason-and-the-argonauts-1963/

@jeckman | #wcbos

8 . I N T E G R AT I O N W I T H O T H E R S E R V I C E S

• Email newsletter providers

• Google Docs

• Encapsulate outgoing calls via internal custom endpoint

• Import from Video management systems

• Populating existing CMS (replace back-end in place)

• Provide an API to your data for others to build on

http://www.icollector.com/Jason-and-the-Argonauts-complete-set-of-10-color-stills_i11535645

@jeckman | #wcbos

9 . I N T E G R AT I O N W I T H M O B I L E A P P S

• Standardized format for content pull into native app experiences

• Bi-directional: create and update custom post types based on user actions in app

• Future-proofing - what’s behind the API could be swapped later, for specific endpoints/versions

http://www.tracking-board.com/exclusive-paramount-going-greek-developing-new-jason-and-the-argonauts/

@jeckman | #wcbos

1 0 . I N T E G R AT I O N W I T H D E S K T O P A P P S

• Provide contextual, on-demand help

• Intake of orders, requests for quotes

• Minimize need for releases, cache for offline use

http://www.darkrealmfox.com/film_reviews/blu-ray-screencaps-jason-and-the-argonauts/

@jeckman | #wcbos

S U M M A R Y

1. Headless

2. Multi-headed

3. Infrastructure

4. In-Site Content

5. Cross-Site Content

6. Author Experience

7. Editor Experience

8. Service Integration

9. Mobile Apps

10. Desktop Apps

http://www.metmuseum.org/toah/works-of-art/09.136.1/

@jeckman | #wcbos

T H A N K S !

http://imgur.com/gallery/ciUf2TP

@jeckman | #wcbos

[email protected]