Your API Sucks

Post on 10-May-2015

8.415 views 1 download

Tags:

description

We've learned the hard way that websites need great user experiences to survive. So why aren't we being this aggressive with API design? What are the deeper reasons behind why REST killed SOAP? And why aren't all API providers thinking about the truly important issues, making APIs that will be used by people? Come for the hall of shame and stay for the wake-up call.

Transcript of Your API Sucks

Your API Sucks

Why developers hang up and how to stop that.

Marsh Gardiner @earth2marshProduct Manager, Apigee

• User experience wins• API users = developers• Developer experiences (generally) suck• But they don’t have to…

IN A NUTSHELLTHIS TALK

Simple things should be simple.

Complex things should be possible.

— Alan Kay

POST /InStock HTTP/1.1Host: www.example.orgContent-Type: application/soap+xml; charset=utf-8Content-Length: 299 <?xml version="1.0"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"> <soap:Header> </soap:Header> <soap:Body> <m:GetStockPrice xmlns:m="http://www.example.org/stock"> <m:StockName>IBM</m:StockName> </m:GetStockPrice> </soap:Body></soap:Envelope>

http://api.twitter.com/1/statuses/public_timeline.json

Why REST is winning:

Why did youbuild an API?

Why is this so hard?

Why does Freemium work?

Do it better

Your API is a product.

Treat it that way.Your developers are your customers.

Your engineers may be great at writing the code behind your API.

Are they great at writing API docs?

“Because you can,” doesn’t mean, “you should.”

Good visual design involves restraint. Good code involves restraint. Good API design involves restraint.

Opacity is inscrutable. (Also, unforgivable.)

Give devs the information they need to succeed.

Put yourself in their shoes.

THANK YOUQuestions, examples, and ideas to:

@earth2marshmarsh@apigee.com