Hackathons have boomed, people attending such events have been consuming thousands of APIs to power their creative projects. However, not everyone can consume APIs like a boss. Companies spend hundreds of thousands of dollars in promoting and ensuring best practices are followed when building APIs. In this talk I will give you an overview of how to build a potentially successful API overnight, like hackathoneers do. A recipe for success as a takeaway from this talk will be shared. Topics covered: Evolution of APIs, Hackathons, REST API Frameworks, API Design, API Editors, API Management.
4. We are API fanatics. We are API hustlers.
We build API tools.
UNIREST
APIANALYTICS
getKONG
5. Interested in building API management tools:
Proxies, Reverse proxies, Caching, Analytics,
UserManagement but also a friendly Market Place
100.000 API developers, thousands of APIs
7. IMPORTANT API NOTICE
• Everyone should use APIs: API economy, & API
centric design
• APIs don’t have to be public
• If you don’t use APIs in 2015 you’re doing
something wrong
8. LET’S DO THIS
• Introduction
• Architectures
• Endpoints
• Building
• Monetizing
• Marketing
• A look at the future…
9. FROM 0 TO 100
To build something powerful you have to spend time
designing it properly
13. EVERYONE WANTS TO WIN
• A painless experience for consumers
• Return data in simple flexible format (JSON vs
XML)
• Insightful Errors
• Does what it says…right?
16. REST
REST is not a standard but makes consumption of APIs faster,
its CRUD.
REST uses plain HTTP with JSON, mostly
REST can be cached
Natural to developers, SDKs, Docs
17. BLUEPRINTS
• Think as a Dev, Think use-cases
• RAML,APIBLUEPRINT, SWAGGER
• Worth the time WADL -> XML
Swagger -> JSON
IODocs -> JSON
RestDoc -> JSON
APIBlueprint -> Markdown
RAML ->YAML
21. SOAP
- Independent of transport protocol (HTTP, FTP, UDP)
- XML
- SOAP Messages are envelopes (data,actions,headers,errors)
- Not just SSL but WS-Security
- Self-discoverable (WSDL)
Self-retrying (WS-ReliableMessaging)
Some scenarios are ok..
74. –Paddy Foran
“Good API design is not a matter of following
principles, it’s a matter of fulfilling your users’
expectations while trying to maintain technical
and semantic purity”
76. • Design intuitive APIs, aimed for instant consumption with
scalable stacks
• Use logs and do tests. Analyse what endpoints are used
most and learn from it.
• Think of how developers will use your API.
Find use-cases and illustrate them in the docs.
• By finding most common uses cases you can then make
endpoints that make sense.
• Create a great developer experience by talking with your
user-base.
78. TOOLS TO HAVE
• wrk - Stress test from the comfort of your localhost
• https://loader.io/ - LOADTESTING
• https://www.blitz.io/ - GEO LOADTESTING
• https://github.com/jakubroztocil/httpie - f**ks cURL CLI
• https://www.getpostman.com/ - f**ks the CLI
• http://luckymarmot.com/paw - f**ks the browser (macos)