how to design and build a great web api

24
How to Build a Great Web API James Higginbotham [email protected] @launchany

Upload: launchany

Post on 10-Sep-2014

455 views

Category:

Software


0 download

DESCRIPTION

APIs and API-first strategies are quickly becoming important for software product companies. These slides are from a lightning talk discussing why developer experience should be your #1 concern when launching a web API, and how everyone on your team can contribute to the process through the practice of API modeling.

TRANSCRIPT

Page 1: How to Design and Build a Great Web API

How to Build a Great Web API

James [email protected]

@launchany

Page 2: How to Design and Build a Great Web API

The World of APIs

Page 3: How to Design and Build a Great Web API

Estimated 100-200k APIs

Page 4: How to Design and Build a Great Web API

We help API developers go from…

Page 5: How to Design and Build a Great Web API

…to this

Page 6: How to Design and Build a Great Web API

6

APIs Are More Than Code

Applications - Business CapabilitiesData – Inbound and OutboundDevices – Always on/Sometimes onWorkflow - orchestrationPeople – users and developers

Page 7: How to Design and Build a Great Web API

Developer Experience (“DX”)

Developer Experience is to Developers

asUser Experience is to Users

Page 8: How to Design and Build a Great Web API
Page 9: How to Design and Build a Great Web API

9

Page 10: How to Design and Build a Great Web API

Make It Easy To Love Your API

1) Great documentation

Page 11: How to Design and Build a Great Web API

Bad Developer Experience

Page 12: How to Design and Build a Great Web API

Swagger for API docs

Page 13: How to Design and Build a Great Web API

Interactive = “Try It Out!”

Page 14: How to Design and Build a Great Web API

Make It Easy To Love Your API

1) Great documentation2) Simple examples

Page 15: How to Design and Build a Great Web API

Twilio Example

Page 16: How to Design and Build a Great Web API

Make It Easy To Love Your API

1) Interactive documentation2) Great examples3) Consistent

Page 17: How to Design and Build a Great Web API

Not REST!

Page 18: How to Design and Build a Great Web API

REST!

Page 19: How to Design and Build a Great Web API

How can we ensure a great developer

experience?

Page 20: How to Design and Build a Great Web API

Modeling REST APIsSimilar to wireframing or domain modelingREST focuses on resourcesResources can be entities and workflowsModeling enhances our understanding

Page 21: How to Design and Build a Great Web API

5 Steps to API Modeling1. Identify the participants2. Identify the activities3. Separate the activities into steps4. List resources and methods5. Validate for completeness

Page 22: How to Design and Build a Great Web API

Modeling is FunThe goal is to design a beautiful API Involve your entire team:Developers, QA, Business Analysts Product Owners, Subject Matter ExpertsHave fun with it!

Page 23: How to Design and Build a Great Web API

Thank you!