How to build an API your developers will love - Code.talks 2015, Hamburg by Michael Kuehne

25
How to build an API your developers will love? Michael Kuehne

Transcript of How to build an API your developers will love - Code.talks 2015, Hamburg by Michael Kuehne

Page 1: How to build an API your developers will love - Code.talks 2015, Hamburg by Michael Kuehne

How to build an API your developers will love?

Michael Kuehne

Page 2: How to build an API your developers will love - Code.talks 2015, Hamburg by Michael Kuehne

Michael Kuehne Independent Software Engineer

API Specialist

Page 3: How to build an API your developers will love - Code.talks 2015, Hamburg by Michael Kuehne

Why should you build an API your

developers will love?

Page 4: How to build an API your developers will love - Code.talks 2015, Hamburg by Michael Kuehne

Your API is a Product

Page 5: How to build an API your developers will love - Code.talks 2015, Hamburg by Michael Kuehne

Create a Developer Experience

User Scenarios & User Stories

Personas

Page 6: How to build an API your developers will love - Code.talks 2015, Hamburg by Michael Kuehne

Don‘t forget these Guys

Page 7: How to build an API your developers will love - Code.talks 2015, Hamburg by Michael Kuehne

Create an overall Experience

with DX Core

Page 8: How to build an API your developers will love - Code.talks 2015, Hamburg by Michael Kuehne

UX UX Honeycomb

Page 9: How to build an API your developers will love - Code.talks 2015, Hamburg by Michael Kuehne

Simple Functions and Calls

Useful to me vs. Userful by Design

Page 10: How to build an API your developers will love - Code.talks 2015, Hamburg by Michael Kuehne

Create value for a business

Service, Data, Audience, ...

Page 11: How to build an API your developers will love - Code.talks 2015, Hamburg by Michael Kuehne

Long-Term Mindset

Consistency

Page 12: How to build an API your developers will love - Code.talks 2015, Hamburg by Michael Kuehne

RESTful

Naming

HAL for XML & JSON

Page 13: How to build an API your developers will love - Code.talks 2015, Hamburg by Michael Kuehne

V1 Versioning

Page 14: How to build an API your developers will love - Code.talks 2015, Hamburg by Michael Kuehne

Where   What   Who   Example  

Path  segment   Data   Twilio   /2015-­‐09-­‐01/...  

Path  segment   Number   TwiAer   /1/...  

Path  segment   ‘v‘  +  Number   LinkedIn   /v1/...  

Path  segment   ‘v‘  +  Number   Yelp   .../v1/...  

Query  string   Number   Google   ?v=2  

Custom  HTTP  Header   Number   Google   GData-­‐Version:  2  

HTTP  Accept  Header   Number   GitHub   ApplicaUon/vnd.github[.version]  

Path  segment   Number   Michael  Kuehne  

/v2-­‐3/...  

Versioning

Page 15: How to build an API your developers will love - Code.talks 2015, Hamburg by Michael Kuehne

Error Messages

Page 16: How to build an API your developers will love - Code.talks 2015, Hamburg by Michael Kuehne

Publish your Tests

Provide Stubs

Page 17: How to build an API your developers will love - Code.talks 2015, Hamburg by Michael Kuehne

SDKs

Dev Dashboard

Sandbox

Page 18: How to build an API your developers will love - Code.talks 2015, Hamburg by Michael Kuehne
Page 19: How to build an API your developers will love - Code.talks 2015, Hamburg by Michael Kuehne

Documentation

Communication

Page 20: How to build an API your developers will love - Code.talks 2015, Hamburg by Michael Kuehne

HATEOAS

Extend Responses

Page 21: How to build an API your developers will love - Code.talks 2015, Hamburg by Michael Kuehne

Reliable APIs

Legal Part

Page 22: How to build an API your developers will love - Code.talks 2015, Hamburg by Michael Kuehne

And what does Apple?

Page 23: How to build an API your developers will love - Code.talks 2015, Hamburg by Michael Kuehne

„An API is a Journey

Not a destination“

John Musser

Page 24: How to build an API your developers will love - Code.talks 2015, Hamburg by Michael Kuehne

Thank you and start creating API your Developers will love!

Michael Kuehne [email protected]

@michikuehne

Page 25: How to build an API your developers will love - Code.talks 2015, Hamburg by Michael Kuehne

Credits •  Stormtropper with Heart https://flic.kr/p/7CMCXh •  Apple Stormtropper https://flic.kr/p/8pxp41 •  Logo Quad Racer https://flic.kr/p/dXan4x •  Business man https://flic.kr/p/9ahi5b •  See in the Mountains https://flic.kr/p/bDg5Ms •  Leathermen https://flic.kr/p/7BMTj9 •  Traffic Sign https://flic.kr/p/4uZDqS •  Hello my name is https://flic.kr/p/7NudQf •  LED https://flic.kr/p/eQy2Um •  Toolbox https://flic.kr/p/bkSP2c •  Chocolate https://flic.kr/p/eMKxsK •  Boy Scouts https://flic.kr/p/cdxFkW •  Wheel chair https://flic.kr/p/9g1LDE •  Church https://flic.kr/p/opTHCA •  Kayak https://flic.kr/p/bSaLKB