SlideShare a Scribd company logo
Documenting APIs
GlueCon 2015
with cats
Anya Stettler
Developer Relations
Avalara
anyarms
Why do we need good documentation?
What qualities distinguish “good”
documentation?
How can we communicate with
developers?
How can we improve existing
documentation?
Do we really need great docs?
YES!
products are
complicated
documentation
is an
afterthought
Good documentation is good
• Decreases barriers to entry
• Decreases support costs
• Works as a marketing tool
When evaluating an API…
http://www.programmableweb.com/news/api-consumers-want-reliability-
documentation-and-community/2013/01/07
Documenting APIs with Cats
zero to “Hello World”
https://developer.yahoo.com/weather/
https://developer.yahoo.com/yql/console/
Bad documentation makes
your users skeptical …
… or sad.
Documenting APIs with Cats
Documenting APIs with Cats
What is good documentation?
A comprehensive,
navigable
resource that
provides users the
information to build
a painless,
maintainable,
successful
integration to your
service.
What is good documentation?
A comprehensive,
navigable
resource that
provides users the
information to build
a painless,
maintainable,
successful
integration to your
service.
What is good documentation?
A comprehensive,
navigable
resource that
provides users the
information to build
a painless,
maintainable,
successful
integration to your
service.
What is good documentation?
A comprehensive,
navigable
resource that
provides users the
information to build
a painless,
maintainable,
successful
integration to your
service.
What is good documentation?
A comprehensive,
navigable
resource that
provides users the
information to build
a painless,
maintainable,
successful
integration to your
service.
What is good documentation?
A comprehensive,
navigable
resource that
provides users the
information to build
a painless,
maintainable,
successful
integration to your
service.
Types of Docs
• Technical Reference
• Sample Code/Code Snippets
• Tutorials (written, video,
interactive)
• Application Samples
• Q&A Resources
Technical Reference
• Describe everything in your
API
– Even things you don’t want
people to use
• Structure should follow the
structure of the API
– But can intentionally diverge
• Primarily values:
comprehensive, navigable
• Shortcuts: API design,
‘automatic’ documentation,
formatting
https://dev.twitter.com/rest/reference/get/search/tweets
Documenting APIs with Cats
Automatic
Documentation
• Less error-prone
• Takes less time
… but it’s only part of the
story!
• Documentation needs to
explain things to people
– Different writing skills
• Communication is too
important to play second
fiddle in comments
Documenting APIs with Cats
Code Snippets
• Allow users to learn by
example
• Demonstrate a single call
• Need to be able to
copy/paste content
– Must work!
• Primary values: painless
• Code should be simple,
readable (not clever)
• Example: Stripe, Twilio
https://stripe.com/docs/api
https://www.twilio.com/docs/api/rest/call
Documenting APIs with Cats
http://docs.themoviedb.apiary.io/
https://github.com/tripit/slate
Which Languages?
• At least three languages
• At least one raw call/response
sample
• Two additional samples implies
multi-language support
• Popularity
• Target audience
• The more the merrier
• as long as
they’re
maintainable
http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html
IEEE Spectrum:
Top Programming Languages (web)
http://spectrum.ieee.org/static/interactive-the-top-programming-languages#index
Fancy Code Snippets
via interactive console
• Allows users to
play with data
• Real calls to API
• User credentials,
parameters
• Tools:
- Mashery I/O Docs
- Apigee
- 3scale
http://developer.klout.com/io-docs
Documenting APIs with Cats
https://dev.twitter.com/rest/tools/console
Documenting APIs with Cats
Documenting APIs with Cats
Documenting APIs with Cats
http://petstore.swagger.io/
Tutorials
• Your product probably
has some subtlety
– Authorization
– Security concerns
– Expected workflow
• Can take many formats
– Step-by-step articles
– Videos/screencasts
– Interactive
• Key Values:
successful, painless
https://stripe.com/docs/tutorials/charges
https://www.stellar.org/developers/
Documenting APIs with Cats
Documenting APIs with Cats
Documenting APIs with Cats
Documenting APIs with Cats
Documenting APIs with Cats
Application Samples
• More fully-fledged
“learning by example”
• Full integration within an
application context
• Larger samples
• More like a POC
• Primary values:
readability, navigability
• Example: Twilio
https://www.twilio.com/docs/howto/walkthrough/appointment-
reminders/ruby/rails
Q&A resources
• There will still be
unanswered questions
– Specific use cases
– Combinations of
resources
• Public answers
benefit the
community
• Primary values:
navigability,
simplicity
http://stackoverflow.com/tags
http://stackoverflow.com/help/product-support
https://developer.salesforce.com/forums/
https://twittercommunity.com/
A comprehensive, navigable resource
that provides users the information
to build a painless, maintainable,
successful integration to your
service.
• Technical Reference
• Sample Code/code snippets
• Tutorials (written, video,
interactive)
• Application Samples
• Q&A resources
Do I really
need all those
things?
Top 10 APIs
Article
• Facebook
• Google Maps
• Twitter
• YouTube
• AccuWeather
• LinkedIn
• Amazon Product
Advertising
• Pinterest
• Flickr
• Google Talk
http://www.programmableweb.com/news/most-popular-apis-least-one-will-surprise-you/2014/01/23
http://www.programmableweb.com/apis (As of 2015-02-09)
Popularity
• Facebook
• Kayak*
• Google Maps
• Skype
• Waze
• Netflix*
• Fresh Logic
Studios Atlas*
• Yahoo Weather
• AirBNB*
• Twitter
What documentation do they
offer?
Technical
Reference
Code
Snippets Tutorials
Interactive
Console SDK
Application
Samples Q&A
Facebook yes yes yes yes yes yes yes
Google Maps yes yes yes no yes no stack overflow
Twitter yes JSON only yes yes some no yes
YouTube yes yes yes yes yes no stack overflow
AccuWeather yes no* yes no no no no
LinkedIn yes yes yes yes 3rd party no yes
Amazon Product
Advertising yes 3rd party yes no 3rd party 3rd party yes
Pinterest yes no yes no yes no no
Flickr yes 3rd party yes yes 3rd party no yes
Google Talk** yes yes yes no yes no yes
Twilio yes yes yes no yes yes yes
Skype URI yes yes yes no no no yes
Waze yes yes yes no no no yes
Yahoo Weather yes yes yes yes no no yes
* Does provide a JavaScript sample for one resource
** Replaced May 2013, no longer updated
Comprehensive vs. Concise?
• Comprehensive
– Full coverage for technical references
– Common use cases for tutorials/samples
• Length becomes an issue
– affects navigation
- dilutes understanding
- impacts maintenance
Information that isn’t accessible
isn’t helpful.
Keep it up to date!
• Inaccurate is as
bad as missing
• Only way to make
integrations
maintainable
Creating Documentation
• Don’t build it from
scratch
• Evaluate the best
description format
for you
• Use existing tools
to make your site
all fancy
• Continue to evolve
investigate…
…and keep
investigating
Documenting APIs with Cats
Documenting APIs with Cats
Documenting APIs with Cats
Documenting APIs with Cats
Documenting APIs with Cats
http://developer.avalara.com
Documenting APIs with Cats
https://github.com/avadev
http://developer.avalara.com/api-reference
Documenting APIs with Cats
So much more!
• SDKs
• Developer Blog
• Posted Release Notes
• Formatting tools
• XML-based docs
• Auto-doc tools
• Open source docs
Documenting APIs with Cats
Thanks!
Anya Stettler
Developer Relations
Avalara
anyarms
anya.stettler@avalara.com
slides available at
http://www.slideshare.net/AnyaStettler

More Related Content

Viewers also liked (14)

PPTX
Clean code
Adégòkè Obasá
 
PDF
Engineering Anti-Patterns @JQueryTO 2014
Nahim Nasser
 
ODP
Documenting code yapceu2016
Søren Lund
 
PPTX
Code documentation
Adégòkè Obasá
 
PDF
Tech Stack: Combining Powerful Technology & Funnel-Driven Content
LeadMD
 
PDF
Source Code Quality
Alberto Simões
 
PDF
Pachara's portfolio
Pachara Khonthai
 
PDF
Documentation Driven Development
Corey Oordt
 
PPTX
code documentation
MADUABUM NNANNA
 
PPTX
How developers write documentation
Senthilkumar Gopal
 
PPTX
To document or not to document? An exploratory study on developers' motivatio...
Hayim Makabee
 
PPT
Docs as-code-missing.-manual
Margaret Eker
 
PPTX
Thinking of Documentation as Code [YUIConf 2013]
evangoer
 
PDF
Delivering High-Velocity Docs that Keep Pace with Rapid Release Cycles
Rachel Whitton
 
Clean code
Adégòkè Obasá
 
Engineering Anti-Patterns @JQueryTO 2014
Nahim Nasser
 
Documenting code yapceu2016
Søren Lund
 
Code documentation
Adégòkè Obasá
 
Tech Stack: Combining Powerful Technology & Funnel-Driven Content
LeadMD
 
Source Code Quality
Alberto Simões
 
Pachara's portfolio
Pachara Khonthai
 
Documentation Driven Development
Corey Oordt
 
code documentation
MADUABUM NNANNA
 
How developers write documentation
Senthilkumar Gopal
 
To document or not to document? An exploratory study on developers' motivatio...
Hayim Makabee
 
Docs as-code-missing.-manual
Margaret Eker
 
Thinking of Documentation as Code [YUIConf 2013]
evangoer
 
Delivering High-Velocity Docs that Keep Pace with Rapid Release Cycles
Rachel Whitton
 

Similar to Documenting APIs with Cats (20)

PDF
apidays LIVE India 2022_Creating API documentation for international communit...
apidays
 
PPTX
Documenting an API for the First Time? Quick-Start Tips for Your First API Do...
Petko Mikhailov
 
PPTX
Building a REST API for Longevity
MuleSoft
 
PDF
API Developer Experience: Why it Matters, and How Documenting Your API with S...
SmartBear
 
PDF
Creating API documentation for international communities
Pronovix
 
PDF
Why your APIs should fly first class
LibbySchulze
 
PDF
Moving into API documentation writing
Ellis Pratt
 
PDF
Consumer centric api design v0.4.0
mustafa sarac
 
PDF
Approaching APIs
Ross Singer
 
PPTX
Writing code samples for API/SDK documentation
Tom Johnson
 
PDF
Building A Great API - Evan Cooke, Cloudstock, December 2010
Twilio Inc
 
PPTX
Documenting the Mobile API Development Process 2023.pptx
XDuce Corporation
 
PDF
Effective API Documentation Strategies (With an API Documentation Example
Perfect Documentation
 
PPTX
Understanding and Executing on API Developer Experience
Keshav Vasudevan
 
PDF
API Best Practices
EmmanuelParaskakis1
 
PDF
A_Complete_Guide_to_API_Development.pdf
PamRobert
 
PDF
The ultimate api checklist by Blendr.io
Blendr.io
 
PPTX
API Documentation presentation to East Bay STC Chapter
Tom Johnson
 
PPTX
API Documentation -- Presentation to East Bay STC Chapter
Tom Johnson
 
PDF
JOSA TechTalks - RESTful API Concepts and Best Practices
Jordan Open Source Association
 
apidays LIVE India 2022_Creating API documentation for international communit...
apidays
 
Documenting an API for the First Time? Quick-Start Tips for Your First API Do...
Petko Mikhailov
 
Building a REST API for Longevity
MuleSoft
 
API Developer Experience: Why it Matters, and How Documenting Your API with S...
SmartBear
 
Creating API documentation for international communities
Pronovix
 
Why your APIs should fly first class
LibbySchulze
 
Moving into API documentation writing
Ellis Pratt
 
Consumer centric api design v0.4.0
mustafa sarac
 
Approaching APIs
Ross Singer
 
Writing code samples for API/SDK documentation
Tom Johnson
 
Building A Great API - Evan Cooke, Cloudstock, December 2010
Twilio Inc
 
Documenting the Mobile API Development Process 2023.pptx
XDuce Corporation
 
Effective API Documentation Strategies (With an API Documentation Example
Perfect Documentation
 
Understanding and Executing on API Developer Experience
Keshav Vasudevan
 
API Best Practices
EmmanuelParaskakis1
 
A_Complete_Guide_to_API_Development.pdf
PamRobert
 
The ultimate api checklist by Blendr.io
Blendr.io
 
API Documentation presentation to East Bay STC Chapter
Tom Johnson
 
API Documentation -- Presentation to East Bay STC Chapter
Tom Johnson
 
JOSA TechTalks - RESTful API Concepts and Best Practices
Jordan Open Source Association
 
Ad

Recently uploaded (20)

PPTX
classification of computer and basic part of digital computer
ravisinghrajpurohit3
 
PDF
On Software Engineers' Productivity - Beyond Misleading Metrics
Romén Rodríguez-Gil
 
PPT
Brief History of Python by Learning Python in three hours
adanechb21
 
PDF
Summary Of Odoo 18.1 to 18.4 : The Way For Odoo 19
CandidRoot Solutions Private Limited
 
PDF
Enhancing Security in VAST: Towards Static Vulnerability Scanning
ESUG
 
PDF
ChatPharo: an Open Architecture for Understanding How to Talk Live to LLMs
ESUG
 
PPTX
Web Testing.pptx528278vshbuqffqhhqiwnwuq
studylike474
 
PDF
AWS_Agentic_AI_in_Indian_BFSI_A_Strategic_Blueprint_for_Customer.pdf
siddharthnetsavvies
 
PPTX
Presentation about variables and constant.pptx
kr2589474
 
PPTX
Employee salary prediction using Machine learning Project template.ppt
bhanuk27082004
 
PDF
Virtual Threads in Java: A New Dimension of Scalability and Performance
Tier1 app
 
PDF
How Agentic AI Networks are Revolutionizing Collaborative AI Ecosystems in 2025
ronakdubey419
 
PDF
Salesforce Pricing Update 2025: Impact, Strategy & Smart Cost Optimization wi...
GetOnCRM Solutions
 
PDF
Troubleshooting Virtual Threads in Java!
Tier1 app
 
PDF
10 posting ideas for community engagement with AI prompts
Pankaj Taneja
 
PDF
New Download FL Studio Crack Full Version [Latest 2025]
imang66g
 
PDF
Download iTop VPN Free 6.1.0.5882 Crack Full Activated Pre Latest 2025
imang66g
 
PPTX
slidesgo-unlocking-the-code-the-dynamic-dance-of-variables-and-constants-2024...
kr2589474
 
PDF
Enhancing Healthcare RPM Platforms with Contextual AI Integration
Cadabra Studio
 
PPT
Activate_Methodology_Summary presentatio
annapureddyn
 
classification of computer and basic part of digital computer
ravisinghrajpurohit3
 
On Software Engineers' Productivity - Beyond Misleading Metrics
Romén Rodríguez-Gil
 
Brief History of Python by Learning Python in three hours
adanechb21
 
Summary Of Odoo 18.1 to 18.4 : The Way For Odoo 19
CandidRoot Solutions Private Limited
 
Enhancing Security in VAST: Towards Static Vulnerability Scanning
ESUG
 
ChatPharo: an Open Architecture for Understanding How to Talk Live to LLMs
ESUG
 
Web Testing.pptx528278vshbuqffqhhqiwnwuq
studylike474
 
AWS_Agentic_AI_in_Indian_BFSI_A_Strategic_Blueprint_for_Customer.pdf
siddharthnetsavvies
 
Presentation about variables and constant.pptx
kr2589474
 
Employee salary prediction using Machine learning Project template.ppt
bhanuk27082004
 
Virtual Threads in Java: A New Dimension of Scalability and Performance
Tier1 app
 
How Agentic AI Networks are Revolutionizing Collaborative AI Ecosystems in 2025
ronakdubey419
 
Salesforce Pricing Update 2025: Impact, Strategy & Smart Cost Optimization wi...
GetOnCRM Solutions
 
Troubleshooting Virtual Threads in Java!
Tier1 app
 
10 posting ideas for community engagement with AI prompts
Pankaj Taneja
 
New Download FL Studio Crack Full Version [Latest 2025]
imang66g
 
Download iTop VPN Free 6.1.0.5882 Crack Full Activated Pre Latest 2025
imang66g
 
slidesgo-unlocking-the-code-the-dynamic-dance-of-variables-and-constants-2024...
kr2589474
 
Enhancing Healthcare RPM Platforms with Contextual AI Integration
Cadabra Studio
 
Activate_Methodology_Summary presentatio
annapureddyn
 
Ad

Documenting APIs with Cats

Editor's Notes

  • #4: I'll talk about why good documentation is so important. I'll cover some different ways to engage with developers through documentation and what qualities you should look for in each of those methods. We'll take a look at some examples of good documentation for each of those. Then we'll take a look at some hypothetical, terrible documentation and refactor it into good documentation. That should be the fun part.
  • #5: Let's start easy. I hope you're all in agreement with me on this one: your API needs documentation.
  • #6: No API is entirely self-explanatory. You may have the most elegant, intuitive API possible, but you still need documentation. And I don't mean just a list of fields with descriptions. That's essential, but it needs to go deeper than that. There are complexities to your business. To your product. Those need to be clear to your users. There are a lot of other talks here about helping machines communicate with other machines. That's not what I mean here. This is communicating with humans.
  • #7: In practice…
  • #8: More specifically If your documentation is good, it can do some great things. Here are the easy ones: - It decreases barriers to entry. It's easier to use your product since it's well documented, so it takes less time and effort to get it up and running. - It decreases support burden and costs. Developers aren't calling or emailing with as many questions, and as they continue to modify or update their code, they have a reference to go back to. Even if you walk them through it step by step now, after six or eight months, they'll forget all that information. Write it down! Make it accessible. It's less expensive for you and for them. So, In addition to being purely informative, what else can documentation imply to your developer customers? It can reduce costs of implementation and support and all that, but it also works as a marketing tool.
  • #10: Often, you're selling a product to a business guy. This is a business cat – he is wearing a tie. He's going to make the decision that this product looks like it meets the business needs. He's not going to be writing the code, but he's maybe a tech-literate guy, and as part of the evaluation process, he wants to make sure that his dev will have what he needs to get the job done. If you can send him to documentation that is clearly easy to navigate and even just appears to be helpful, that goes a long way towards reassuring him. This is a developer cat – he is wearing a hoodie. When his dev looks at it, he also impressed and reassured, and the integration process looks easier.
  • #11: This marketing perspective isn’t a full evaluation of everything your API can do. Not yet. This is just 'can I make a request and get a response'? How does it feel when I kick the tires? If that incredibly basic request/response is easy, it makes me feel like a successful reader. It will certainly get trickier, but I have one easy win under my belt. I can do this - no problem. If the 'zero to hello world' seems too complicated, well, that was the easiest thing of all the things I will need to do. It's only going to get harder as I try to reflect more complicated use cases and look at more complicated representations. I'm defeated before I begin.
  • #14: If your documentation is bad, there are a couple of things users might think. They might think that if your documentation is shoddy, your product is also shoddy. That the quality of the documentation accurately reflects the state of your service. In that case, they will doubt that your product can actually deliver on what you promised in your much swankier marketing materials. Okay, let's call that the worse case. That your bad documentation undermines any perception of a quality product. That sounds pretty bad.
  • #15: In the very best case, they give you the benefit of the doubt that your product does, in fact, work as advertised (and as well as advertised). In that case, you must not care about engaging developers as an audience. Their success and ease of product use is not important to you as a business. And that's not nice either. That's our best case. That your readers assume that everything else is great, just not this one incredibly essential part of their engagement with you and your company. And that they are not important to you. So much so that you have not bothered to write down the answers to questions you know they will have. 'What are the resources I can call and how do I call them?' What will happen when they come up with other, more meaningful, questions? Harder questions? What kind of support should they expect in those cases?
  • #16: If you have bad documentation, it’s not the end of the world. When I started in my group, we emailed developers a 35-page PDF document. There was no central location where the PDF was available, so people were always asking each other “is this the latest one? Do you have the latest one?” which was kind of a joke, because the document had no relation to our service versioning.
  • #17: It had an index. So, that was our documentation. We’ve come a long way since then, but that’s where we started.
  • #18: So. Good documentation is good. Super. What makes documentation good? A feature-complete, self-service resource that provides users with all the information necessary to build a painless, maintainable, successful integration to your service. What do I mean here? Feature-complete. everything is documented. even things you don't really want people to use. If it's out there, and they could possibly find it, it needs to be documented. If you don't want them to use something, by all means, document that. Self-service. users can find what they need without assistance. Painless. that's bringing back our 'zero to hello world' concept, but bigger. This is all the things that are undeniably necessary (technical references), as well as the things that make integration much much easier. Things like sample code, tutorials that cover use cases, etc. This is the big content driver, we'll talk about this more later. Maintainable. in two years when some other dev opens up the integration code, will they be able to see what your API did then? Will they be able to make enhancements? Will they be able to udpate to the latest API version? Are you, as a documenter, confident that you are updating everything that needs to be updated when a new release is pushed to production? Successful. if there are industry concerns that you have - if there are particular use cases that require special attention, you need to make sure to cover all of them. If you are payment processor, and you need to impress upon your users the need to not store credit card information, that's something that needs to be included.
  • #19: So. Good documentation is good. Super. What makes documentation good? A feature-complete, self-service resource that provides users with all the information necessary to build a painless, maintainable, successful integration to your service. What do I mean here? Feature-complete. everything is documented. even things you don't really want people to use. If it's out there, and they could possibly find it, it needs to be documented. If you don't want them to use something, by all means, document that. Self-service. users can find what they need without assistance. Painless. that's bringing back our 'zero to hello world' concept, but bigger. This is all the things that are undeniably necessary (technical references), as well as the things that make integration much much easier. Things like sample code, tutorials that cover use cases, etc. This is the big content driver, we'll talk about this more later. Maintainable. in two years when some other dev opens up the integration code, will they be able to see what your API did then? Will they be able to make enhancements? Will they be able to udpate to the latest API version? Are you, as a documenter, confident that you are updating everything that needs to be updated when a new release is pushed to production? Successful. if there are industry concerns that you have - if there are particular use cases that require special attention, you need to make sure to cover all of them. If you are payment processor, and you need to impress upon your users the need to not store credit card information, that's something that needs to be included.
  • #20: So. Good documentation is good. Super. What makes documentation good? A feature-complete, self-service resource that provides users with all the information necessary to build a painless, maintainable, successful integration to your service. What do I mean here? Feature-complete. everything is documented. even things you don't really want people to use. If it's out there, and they could possibly find it, it needs to be documented. If you don't want them to use something, by all means, document that. Self-service. users can find what they need without assistance. Painless. that's bringing back our 'zero to hello world' concept, but bigger. This is all the things that are undeniably necessary (technical references), as well as the things that make integration much much easier. Things like sample code, tutorials that cover use cases, etc. This is the big content driver, we'll talk about this more later. Maintainable. in two years when some other dev opens up the integration code, will they be able to see what your API did then? Will they be able to make enhancements? Will they be able to update to the latest API version? Are you, as a documenter, confident that you are updating everything that needs to be updated when a new release is pushed to production? Successful. if there are industry concerns that you have - if there are particular use cases that require special attention, you need to make sure to cover all of them. If you are payment processor, and you need to impress upon your users the need to not store credit card information, that's something that needs to be included.
  • #21: So. Good documentation is good. Super. What makes documentation good? A feature-complete, self-service resource that provides users with all the information necessary to build a painless, maintainable, successful integration to your service. What do I mean here? Feature-complete. everything is documented. even things you don't really want people to use. If it's out there, and they could possibly find it, it needs to be documented. If you don't want them to use something, by all means, document that. Self-service. users can find what they need without assistance. Painless. that's bringing back our 'zero to hello world' concept, but bigger. This is all the things that are undeniably necessary (technical references), as well as the things that make integration much much easier. Things like sample code, tutorials that cover use cases, etc. This is the big content driver, we'll talk about this more later. Maintainable. in two years when some other dev opens up the integration code, will they be able to see what your API did then? Will they be able to make enhancements? Will they be able to update to the latest API version? Are you, as a documenter, confident that you are updating everything that needs to be updated when a new release is pushed to production? Successful. if there are industry concerns that you have - if there are particular use cases that require special attention, you need to make sure to cover all of them. If you are payment processor, and you need to impress upon your users the need to not store credit card information, that's something that needs to be included.
  • #22: So. Good documentation is good. Super. What makes documentation good? A feature-complete, self-service resource that provides users with all the information necessary to build a painless, maintainable, successful integration to your service. What do I mean here? Feature-complete. everything is documented. even things you don't really want people to use. If it's out there, and they could possibly find it, it needs to be documented. If you don't want them to use something, by all means, document that. Self-service. users can find what they need without assistance. Painless. that's bringing back our 'zero to hello world' concept, but bigger. This is all the things that are undeniably necessary (technical references), as well as the things that make integration much much easier. Things like sample code, tutorials that cover use cases, etc. This is the big content driver, we'll talk about this more later. Maintainable. in two years when some other dev opens up the integration code, will they be able to see what your API did then? Will they be able to make enhancements? Will they be able to update to the latest API version? Are you, as a documenter, confident that you are updating everything that needs to be updated when a new release is pushed to production? Successful. if there are industry concerns that you have - if there are particular use cases that require special attention, you need to make sure to cover all of them. If you are payment processor, and you need to impress upon your users the need to not store credit card information, that's something that needs to be included.
  • #23: So. Good documentation is good. Super. What makes documentation good? A feature-complete, self-service resource that provides users with all the information necessary to build a painless, maintainable, successful integration to your service. What do I mean here? Feature-complete. everything is documented. even things you don't really want people to use. If it's out there, and they could possibly find it, it needs to be documented. If you don't want them to use something, by all means, document that. Self-service. users can find what they need without assistance. Painless. that's bringing back our 'zero to hello world' concept, but bigger. This is all the things that are undeniably necessary (technical references), as well as the things that make integration much much easier. Things like sample code, tutorials that cover use cases, etc. This is the big content driver, we'll talk about this more later. Maintainable. in two years when some other dev opens up the integration code, will they be able to see what your API did then? Will they be able to make enhancements? Will they be able to update to the latest API version? Are you, as a documenter, confident that you are updating everything that needs to be updated when a new release is pushed to production? Successful. if there are industry concerns that you have - if there are particular use cases that require special attention, you need to make sure to cover all of them. If you are payment processor, and you need to impress upon your users the need to not store credit card information, that's something that needs to be included.
  • #24: If this is the goal we're trying to achieve, what are the elements we can use to reach this goal? I'm going to talk about five different types of documentation. You should offer all of them. Technical reference This is what most people think of when they think of API documentation. What are the bare facts of calling your API? what are the resources, methods, parameters, so on. Sample code/code snippets These are copy-pasteable bits of code that demonstrate a particular use. Just one call - not a whole use case. Tutorials (written, video, interactive) Explanation of particular use cases or workflows Application samples Sample code with context. This is often a (bare-bones) stand-alone application that includes integration to your API. Q&A resources Somewhere people can go when they're unsure.
  • #25: A description of something should follow the structure of the thing itself. In that way, even the structure of your documentation can imply the structure of your API. After all, your documentation is the human-discoverable representation of your API. If your API is well-designed and well-structured, if it really is intuitive, you can avoid some amount of volume in your documentation. Not because those things don't need documenting - they do! They're just documented elsewhere. The biggest pain points in usability are when things don't do what your user expects - you need to document those things incredibly carefully.
  • #49: Stellar is a decentralized protocol for sending and receiving money in any pair of currencies
  • #70: Documentation is iterative. And even a little can go a long way.
  • #71: Remember that PDF documentation?
  • #72: 3 ½ years ago…
  • #80: 86 cases (last August) to 12 cases (last month)
  • #82: With all these tools and resources available to you, I hope you’re inspired to brush up your documentation!