SlideShare a Scribd company logo
iSyndicaBuilding an APIHackerspace.sg, April 20th 2010
Good API DesignIt’s a great asset.Or a liability.
What makes an API ‘Good’?It just works.
Three Key GuidelinesLabels/GetLabel?id=1GetLabelRootsGetLabelChildren?id=1Keep it atomic.
Three Key GuidelinesGreatExampleseBayFacebookFlickrGoogle DataTwitterDocument well.
Three Key Guidelines.NET: T4Ruby:RgenPython: Cog, CheetahJava: XDocletCode generation is your friend.
API Security TypesDeveloper KeyUsername/PasswordDigestToken
Our Choice
Mobile OAuth?
Have FunThere’s no “Perfect API”.
Thanks!www.isyndica.comnqadir@isyndica.com

More Related Content

PPTX
Pro Tips for Better Chatbot Experience
PDF
Cognitive Services: Building Smart Apps with Speech, NLP & Vision
PPTX
Building APIs for your Frontend
PPTX
OpenAPI at Scale
PDF
apidays LIVE Hong Kong 2021 - Less Data is More by Damir Svrtan, Netflix
PPTX
Open Event API
PPTX
Best Way to Learn Python for Non Programmer | Python Programming for Absolute...
PDF
apidays LIVE New York - API Code First vs Design First by Phil Sturgeon
Pro Tips for Better Chatbot Experience
Cognitive Services: Building Smart Apps with Speech, NLP & Vision
Building APIs for your Frontend
OpenAPI at Scale
apidays LIVE Hong Kong 2021 - Less Data is More by Damir Svrtan, Netflix
Open Event API
Best Way to Learn Python for Non Programmer | Python Programming for Absolute...
apidays LIVE New York - API Code First vs Design First by Phil Sturgeon

Viewers also liked (20)

PDF
Unofficial Transcript5Harrington
PPTX
09 10 fotos-texto novoneyra
KEY
Ministry Net 2009--Upgraded
PPS
SDC Sales Presentation
PPT
Solis, un paseo por la creación de su obra
PPTX
ser saudável é fácil
PPT
Seminário 17.06
PPTX
Frank locker fotos
PPT
EquaçãO Do 1º Grau Office 2003
PDF
ORÇAMENTO PÚBLICO E PARTICIPAÇÃO POPULAR
PPTX
Mezcla Promociones
PDF
KALSEE Certificate
PDF
DHS Diploma
PDF
MEIO AMBIENTE
DOC
beng
PDF
Praktikumsreferenz_Lu Huang
PDF
PPS
Hoy y no manana
PDF
Cronograma. 11ª conf. mun. de saúde
PDF
Hulis Vnu
Unofficial Transcript5Harrington
09 10 fotos-texto novoneyra
Ministry Net 2009--Upgraded
SDC Sales Presentation
Solis, un paseo por la creación de su obra
ser saudável é fácil
Seminário 17.06
Frank locker fotos
EquaçãO Do 1º Grau Office 2003
ORÇAMENTO PÚBLICO E PARTICIPAÇÃO POPULAR
Mezcla Promociones
KALSEE Certificate
DHS Diploma
MEIO AMBIENTE
beng
Praktikumsreferenz_Lu Huang
Hoy y no manana
Cronograma. 11ª conf. mun. de saúde
Hulis Vnu
Ad

More from e27 (20)

PDF
Insights from Localising and Evolving LINE through Partnerships
PDF
Echelon Thailand 2017 – Cybersecurity Resilience by Crowd Wisdom
PDF
Echelon Thailand 2017 – Fundraising & Term Sheet 101
PDF
Echelon Thailand 2017 – Social Media Intelligence for Start-Ups & SMEs
PPTX
Echelon Thailand 2017 – How can Digital Technology Address Social Needs While...
PDF
Echelon Thailand 2017 – Hiring 101
PDF
Echelon Thailand 2017 – Leveraging On Scalable Technology To Expand Regionally
PDF
Disrupting the Food / Agri Landscape in Southeast Asia With Tech Innovation
PDF
Echelon Asia Summit 2015: Startup Metrics for Mobile Pirates
PPT
Echelon Asia Summit 2015: Path of a NEXT GEN [ASEAN] Start-UP
PPTX
Echelon Asia Summit 2015: State of App Nation: Asia Edition
PPT
Echelon Asia Summit 2015: The Old Guy Speech (The End of the Mobile App Cycle...
PPTX
Echelon Asia Summit 2015: The Future of Payments
PPTX
Echelon Asia Summit 2015: Build Your Multi-$B Category Outside of The Valley
PDF
Why online advertising is not a dirty word - Echelon 2014
PDF
How do Technology Companies And Venture Capital Firms Around The World Maximi...
PDF
Building a Marketplace Business
PDF
The E-commerce Revolution: How the Industry is Evolving and What the Future H...
PDF
The Key Ingredient to Building a World Class Startup: Startup DNA, And How to...
PDF
What is Wrong With Angel Investors And Accelerators
Insights from Localising and Evolving LINE through Partnerships
Echelon Thailand 2017 – Cybersecurity Resilience by Crowd Wisdom
Echelon Thailand 2017 – Fundraising & Term Sheet 101
Echelon Thailand 2017 – Social Media Intelligence for Start-Ups & SMEs
Echelon Thailand 2017 – How can Digital Technology Address Social Needs While...
Echelon Thailand 2017 – Hiring 101
Echelon Thailand 2017 – Leveraging On Scalable Technology To Expand Regionally
Disrupting the Food / Agri Landscape in Southeast Asia With Tech Innovation
Echelon Asia Summit 2015: Startup Metrics for Mobile Pirates
Echelon Asia Summit 2015: Path of a NEXT GEN [ASEAN] Start-UP
Echelon Asia Summit 2015: State of App Nation: Asia Edition
Echelon Asia Summit 2015: The Old Guy Speech (The End of the Mobile App Cycle...
Echelon Asia Summit 2015: The Future of Payments
Echelon Asia Summit 2015: Build Your Multi-$B Category Outside of The Valley
Why online advertising is not a dirty word - Echelon 2014
How do Technology Companies And Venture Capital Firms Around The World Maximi...
Building a Marketplace Business
The E-commerce Revolution: How the Industry is Evolving and What the Future H...
The Key Ingredient to Building a World Class Startup: Startup DNA, And How to...
What is Wrong With Angel Investors And Accelerators
Ad

Recently uploaded (20)

PDF
Hindi spoken digit analysis for native and non-native speakers
PPTX
Tartificialntelligence_presentation.pptx
PDF
A novel scalable deep ensemble learning framework for big data classification...
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
Getting Started with Data Integration: FME Form 101
PDF
2021 HotChips TSMC Packaging Technologies for Chiplets and 3D_0819 publish_pu...
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PPTX
O2C Customer Invoices to Receipt V15A.pptx
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
Enhancing emotion recognition model for a student engagement use case through...
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
STKI Israel Market Study 2025 version august
PDF
WOOl fibre morphology and structure.pdf for textiles
Hindi spoken digit analysis for native and non-native speakers
Tartificialntelligence_presentation.pptx
A novel scalable deep ensemble learning framework for big data classification...
NewMind AI Weekly Chronicles - August'25-Week II
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
Getting Started with Data Integration: FME Form 101
2021 HotChips TSMC Packaging Technologies for Chiplets and 3D_0819 publish_pu...
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
O2C Customer Invoices to Receipt V15A.pptx
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
Enhancing emotion recognition model for a student engagement use case through...
Programs and apps: productivity, graphics, security and other tools
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
NewMind AI Weekly Chronicles – August ’25 Week III
1 - Historical Antecedents, Social Consideration.pdf
STKI Israel Market Study 2025 version august
WOOl fibre morphology and structure.pdf for textiles

iSyndica - Building an API

Editor's Notes

  • #3: An API can be a great asset or a liabilityGood API’s capture trafficOf-boarding cost can be prohibitiveBad API’s can be a huge drain in terms of supportOnce an API is published and in production, it becomes hard to change.
  • #4: Ease of useEasy to learnEasy to add functionalityGets the job done
  • #5: API's need to be Stateless - Every request needs to contain all of the information necessary to service the request. Every API should be atomic - It does one logical operation and one alone and doesn't rely on any sequential calls.API’s should abstract the implementation detailUse self explanatory name.Avoid ambiguous overloading
  • #6: Documentation – It’s a necessary evil, there are too many API’s out there that don’t have enough usable documentation.Be consistent with naming conventions throughout the API.Modularize your code and try to think in terms of interfaces and not implementation types
  • #7: Attempt to incorporate the patterns already existing in the development platform of your choice.Try to reduce “boiler plate” code. Cut & Paste is very error prone. Use Code generation where ever possible.Our 80/20: write code 20% of the time.
  • #8: Developer Key – Unique developer identifier sent as part of every call. Not so secure.Username / Password – Username & Password sent as part of every call. Not so secure unless using HTTPS which is 90% slower than HTTPDigest – Using an security algorithm to stamp a call with a digest for authentication. Fairly secure and easy to implement.Token – Using an identification token
  • #9: OAuth is token based authentication mechanisms that standardizes secure API authorization for desktops & web applicationsOAuth stake holdersProviders – Software applications that provide a service on the web i.e. API enabled websites/web-services. For eq. Facebook, Flickr etcUsers – Users of a service, average joe’s who own an account with the providersConsumers –3rd party Software applications that proxy for the users with the providers. For eqFacebook Mobile, iSyndica VDSAdvantagesOnly the provider sees your username / passwordThe token is easily tracked by the provider and as a user you can limit/revoke the permissionUse of a secret key makes phishing the token useless.DisadvantagesComplex implementation
  • #10: No cleartext username and password ever stored, Username & Password are sent over HTTPS – Slow but secureOauth Loop is instantaneous, No need for the user to go through complexOAuth loops
  • #11: API design isn’t easy but incredibly funAdds incredible valueA group effortThere is no “Perfect API” that fits all the requirement.
  • #12: API design isn’t easy but incredibly funAdds incredible valueA group effortThere is no “Perfect API” that fits all the requirement.