SlideShare a Scribd company logo
1 of 61
Download to read offline
Moving into
API
documentation
writing
Ellis Pratt
@ellispratt
About me
Director at Cherryleaf, a technical writing
services and training company in the UK
(with an API training course)
About you
Who creates API documentation today?
Overview
1. What is an API?
2. APIs and the role of documentation
3. The role of an API documentation writer
4. The skills you need
5. The tools
6. Becoming an API documentation writer
Image: Tim Peake
1.What is an API?
A way for applications to
exchange information
Lots of websites use
information from APIs
Find a GP near to your
postcode
Information is requested from
the NHS Choices API and
displayed on the web page
www.whereilive.norfolk.gov.uk
Behind the scenes
API
App
Developer API Team
Request
What developers do with
APIs
API
App
Developer
Developers write code to take the data provided in the response and use it in
their applications (“parsing”)
There is code in the Web page
to request data and then
display the data on a map
NHS application
containing list of
GP practices in a
database
APIs types you’ll probably
see
REST APIs
Native library APIs (for Java,
C++, .NET etc)
http protocols
Users make requests for the
resources on a Web server.
The server returns responses
containing the information.
API
http request ->
<- http response
http protocols
API
Python
App
JavaScript
App
Ruby
App
Components of a
REST API
A hospital API
An API will consist of a set of
rules describing how an
application can interact with it
and
the mechanisms that allow
such interaction to happen.
API
Example - Your NHS number
The API might state it wants
the NHS number in:
numerical (9434765919)
or
alphanumerical string
(“943-476-5919”)
format.
Resources
API
App
Request
These are the “information objects” the API can exchange
Resources have data associated with them (e.g. the patients’ names)
Endpoints
API
App
Request
http://ABC-hospital.nhs/patients/
A http address where you can find a resource
API Rules
A hospital API will consist of a
set of rules describing how an
application can interact with it
(specifically, a resource):
Create/Add information (Post)
Request information (Get)
Update information (Put/Patch)
Delete information (Delete)
(and run an application)
Requests to an API
Get me Jane Brown’s records
Get me a list of all the patients
leaving hospital today
Get me the Consultant’s name
who is attached to Mrs Brown
etc
GET http://ABC-hospital.nhs/patient/
JaneBrown
curl --get -k --include "http://ABC-
hospital.nhs/patient/?name=jane
brown&NHS=9434765900" -H "X-Key:
ABC12345" -H "Accept: text/plain
curl -X GET -H "Cache-Control: no-
cache" -H "Postman-Token: 97bb9ba5-
f763-208e-b9e4-5d7bd3861835" "https://
fhir-open-api-dstu2.smarthealthit.org/
Patient/1551992"
How do the API team create
APIs?
They may use an API
Specification
They may make REST calls in
the programming language
they are using
API
API Team
They may use a type of API
Specification
API Specification tools can
generate the code for REST
calls in a programming
language.
Programmers can then add
this code to their application.
2.APIs and the role of
documentation
What content goes into an
API document?
Content Buzzword
A clear definition of what
resource it represents
Resource description
The accepted input
Parameters, Request
submission example
The produced output Request response example
Links (where can you go to find
what exactly)
Endpoints
Automatically generated
content
When you describe your API
using the Swagger or RAML
specification, some tools can
read those specifications will
generate an interactive
documentation output.
What else?
Explain what it does
What it does
The overall process
Any underlying concepts
Signing up for an account
Signing up for an account
Getting API authorisation keys
The 3-30-3 goal
The 3-30-3 goal
3 seconds - what it does
30 seconds - why you should
use it
3 minutes - to do something
TTFHW - Time to first "Hello
World"
A simple exercise
How quickly you can get an
application to output “Hello
World”?
For APIs it might be how to
construct a request and
receive a valid response.
Tutorials
For different programming
languages
To get to “Hello World”
Why do we need code
samples?
REST APIs aren’t tied to a
specific programming
language
So developers may need
advice on how to submit HTTP
requests in their particular
programming language
Creating code samples
Some API providers decide to
provide one code sample
(usually in cURL) and let the
developer extrapolate the
format in his or her own
programming language.
curl --get -k --include
"http://ABC-hospital.nhs/
patient/?name=jane
brown&NHS=9434765900" -H "X-
Key: ABC12345" -H "Accept:
text/plain
Creating code samples
Others want to encourage
developers to use their API,
and want to make it as easy
as possible by providing code
samples.
Creating code samples -
Don’t panic!
In some cases, developers
supply the code samples
You briefly add comments to
the code samples.
The patterns for making REST
requests in different
programming languages
follow a common template.
3.The role of an API
documentation writer
Technical Author
Task-based content
To a less technical audience
What Technical Authors do
What Technical Authors do
Technical Author
Filter content for different
audiences
Publish to different media
Re-use content
Localise
API Writer
Reference-based content*
To a technical audience
Single use document
English only
What API doc writers do
* Mostly
There are some differences
Technical Author API Writer
Task-based content Reference-based content
To a non-technical audience To a technical audience
Re-use content Single use
Localise English only
4.The skills you need
Skills required
Technical Author API Writer
1 Writing skills Coding sample writing skills
2 Time management skills Domain knowledge
3 Tools skills Tools skills
4 Domain knowledge Time management skills
5 Writing skills
5.The tools
API tools for documentation
Developers may be writing
Comments in code
The documentation
Using their own tools
API doc writers’ tools
Less sophisticated
Built to suit the developers’
workflow
Low cost, open source
Simple markup
Improving the tools
It’s getting there
Lightweight DITA may help
5.Becoming an API
documentation writer
The grass is greener?
Lots of software developer are
currently working on APIs
Let’s look at some vacancies
On reed.co.uk from mid-
February 2016……
Search carried out on 15/2/2016
Of the 5,000 UK
Technical Authors
on LinkedIn
173
included “API” in their
profile
Finding a unicorn
“Finding a technical writer who
commands
a high degree of English language
fluency
in addition to possessing a deep
technical knowledge of Java, Python,
C++, .NET, Ruby, and more
is like finding a unicorn.”
Tom Johnson
Flickr image: Owlana
A lot of recruitment is by
word of mouth
Following entrepreneurs as
they more from business to
business
Improve skills
You can get by with a wide
and shallow understanding of
programming
Improve skills
Learn Python basics
Understand what the tools
can do
Assist on open source
projects
More training courses are
emerging
Summary
What are the takeaways?
It’s a growing area
It’s changing rapidly
It requires more
technical skills
It’s well paid
Questions
For more information
ellis@cherryleaf.com
@ellispratt
End
© Cherryleaf 2016
Images and screenshots ©
their respective owners

More Related Content

What's hot

Publishing API documentation -- Workshop
Publishing API documentation -- WorkshopPublishing API documentation -- Workshop
Publishing API documentation -- WorkshopTom Johnson
 
Survival Strategies for API Documentation: Presentation to Southwestern Ontar...
Survival Strategies for API Documentation: Presentation to Southwestern Ontar...Survival Strategies for API Documentation: Presentation to Southwestern Ontar...
Survival Strategies for API Documentation: Presentation to Southwestern Ontar...Tom Johnson
 
API Documentation Workshop tcworld India 2015
API Documentation Workshop tcworld India 2015API Documentation Workshop tcworld India 2015
API Documentation Workshop tcworld India 2015Tom Johnson
 
Golden Rules of API Design
Golden Rules of API DesignGolden Rules of API Design
Golden Rules of API DesignDavid Koelle
 
API Documentation -- Presentation to East Bay STC Chapter
API Documentation -- Presentation to East Bay STC ChapterAPI Documentation -- Presentation to East Bay STC Chapter
API Documentation -- Presentation to East Bay STC ChapterTom Johnson
 
RAML - APIs By Design
RAML - APIs By DesignRAML - APIs By Design
RAML - APIs By DesignUri Sarid
 
API Description Languages: Which is the Right One for Me?
API Description Languages: Which is the Right One for Me?API Description Languages: Which is the Right One for Me?
API Description Languages: Which is the Right One for Me?Akana
 
Markdown - friend or foe?
Markdown - friend or foe?Markdown - friend or foe?
Markdown - friend or foe?Ellis Pratt
 
KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuri...
KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuri...KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuri...
KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuri...John Musser
 
Open Event API
Open Event APIOpen Event API
Open Event APIAvi Aryan
 
apidays LIVE New York - API Code First vs Design First by Phil Sturgeon
apidays LIVE New York - API Code First vs Design First by Phil Sturgeonapidays LIVE New York - API Code First vs Design First by Phil Sturgeon
apidays LIVE New York - API Code First vs Design First by Phil Sturgeonapidays
 

What's hot (15)

Publishing API documentation -- Workshop
Publishing API documentation -- WorkshopPublishing API documentation -- Workshop
Publishing API documentation -- Workshop
 
Survival Strategies for API Documentation: Presentation to Southwestern Ontar...
Survival Strategies for API Documentation: Presentation to Southwestern Ontar...Survival Strategies for API Documentation: Presentation to Southwestern Ontar...
Survival Strategies for API Documentation: Presentation to Southwestern Ontar...
 
API Documentation Workshop tcworld India 2015
API Documentation Workshop tcworld India 2015API Documentation Workshop tcworld India 2015
API Documentation Workshop tcworld India 2015
 
Mulesoft Raml APIs
Mulesoft Raml APIsMulesoft Raml APIs
Mulesoft Raml APIs
 
Golden Rules of API Design
Golden Rules of API DesignGolden Rules of API Design
Golden Rules of API Design
 
API Documentation -- Presentation to East Bay STC Chapter
API Documentation -- Presentation to East Bay STC ChapterAPI Documentation -- Presentation to East Bay STC Chapter
API Documentation -- Presentation to East Bay STC Chapter
 
How to define an api
How to define an apiHow to define an api
How to define an api
 
RAML - APIs By Design
RAML - APIs By DesignRAML - APIs By Design
RAML - APIs By Design
 
API Description Languages: Which is the Right One for Me?
API Description Languages: Which is the Right One for Me?API Description Languages: Which is the Right One for Me?
API Description Languages: Which is the Right One for Me?
 
Markdown - friend or foe?
Markdown - friend or foe?Markdown - friend or foe?
Markdown - friend or foe?
 
What is Swagger?
What is Swagger?What is Swagger?
What is Swagger?
 
KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuri...
KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuri...KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuri...
KPIs for APIs (and how API Calls are the new Web Hits, and you may be measuri...
 
Open Event API
Open Event APIOpen Event API
Open Event API
 
API for Beginners
API for BeginnersAPI for Beginners
API for Beginners
 
apidays LIVE New York - API Code First vs Design First by Phil Sturgeon
apidays LIVE New York - API Code First vs Design First by Phil Sturgeonapidays LIVE New York - API Code First vs Design First by Phil Sturgeon
apidays LIVE New York - API Code First vs Design First by Phil Sturgeon
 

Viewers also liked

ISTC presentation - The Institute of Scientific and Technical Communicators
ISTC presentation - The Institute of Scientific and Technical CommunicatorsISTC presentation - The Institute of Scientific and Technical Communicators
ISTC presentation - The Institute of Scientific and Technical CommunicatorsEllis Pratt
 
API Technical Writing
API Technical WritingAPI Technical Writing
API Technical WritingSarah Maddox
 
Louise Fahey - Mapping your path in tech comms: Surviving the early years (TC...
Louise Fahey - Mapping your path in tech comms: Surviving the early years (TC...Louise Fahey - Mapping your path in tech comms: Surviving the early years (TC...
Louise Fahey - Mapping your path in tech comms: Surviving the early years (TC...Louise Fahey
 
Towards an Agile Authoring methodology: Learning from Lean (AgileTheDocs Conf...
Towards an Agile Authoring methodology: Learning from Lean (AgileTheDocs Conf...Towards an Agile Authoring methodology: Learning from Lean (AgileTheDocs Conf...
Towards an Agile Authoring methodology: Learning from Lean (AgileTheDocs Conf...Ellis Pratt
 
Design in Tech Report 2017
Design in Tech Report 2017Design in Tech Report 2017
Design in Tech Report 2017John Maeda
 

Viewers also liked (7)

ISTC presentation - The Institute of Scientific and Technical Communicators
ISTC presentation - The Institute of Scientific and Technical CommunicatorsISTC presentation - The Institute of Scientific and Technical Communicators
ISTC presentation - The Institute of Scientific and Technical Communicators
 
API Technical Writing
API Technical WritingAPI Technical Writing
API Technical Writing
 
Louise Fahey - Mapping your path in tech comms: Surviving the early years (TC...
Louise Fahey - Mapping your path in tech comms: Surviving the early years (TC...Louise Fahey - Mapping your path in tech comms: Surviving the early years (TC...
Louise Fahey - Mapping your path in tech comms: Surviving the early years (TC...
 
Towards an Agile Authoring methodology: Learning from Lean (AgileTheDocs Conf...
Towards an Agile Authoring methodology: Learning from Lean (AgileTheDocs Conf...Towards an Agile Authoring methodology: Learning from Lean (AgileTheDocs Conf...
Towards an Agile Authoring methodology: Learning from Lean (AgileTheDocs Conf...
 
Future-proofing your content
Future-proofing your contentFuture-proofing your content
Future-proofing your content
 
Future-proofing your career
Future-proofing your careerFuture-proofing your career
Future-proofing your career
 
Design in Tech Report 2017
Design in Tech Report 2017Design in Tech Report 2017
Design in Tech Report 2017
 

Similar to Moving into API documentation writing

Introduction to API
Introduction to APIIntroduction to API
Introduction to APIrajnishjha29
 
O'Reilly SACon San Jose, CA - 2019 - API design tutorial
O'Reilly SACon San Jose, CA - 2019 - API design tutorialO'Reilly SACon San Jose, CA - 2019 - API design tutorial
O'Reilly SACon San Jose, CA - 2019 - API design tutorialTom Hofte
 
Best practices and advantages of REST APIs
Best practices and advantages of REST APIsBest practices and advantages of REST APIs
Best practices and advantages of REST APIsAparna Sharma
 
Understanding REST APIs in 5 Simple Steps
Understanding REST APIs in 5 Simple StepsUnderstanding REST APIs in 5 Simple Steps
Understanding REST APIs in 5 Simple StepsTessa Mero
 
Understanding REST APIs in 5 Simple Steps
Understanding REST APIs in 5 Simple StepsUnderstanding REST APIs in 5 Simple Steps
Understanding REST APIs in 5 Simple StepsTessa Mero
 
API Documentation.pptx
API Documentation.pptxAPI Documentation.pptx
API Documentation.pptxRahulCR31
 
API Documentation.pptx
API Documentation.pptxAPI Documentation.pptx
API Documentation.pptxRahulCR31
 
API Management Workshop (at Startupbootcamp Berlin)
API Management Workshop (at Startupbootcamp Berlin)API Management Workshop (at Startupbootcamp Berlin)
API Management Workshop (at Startupbootcamp Berlin)3scale
 
Session 8 Android Web Services - Part 1.pdf
Session 8 Android Web Services - Part 1.pdfSession 8 Android Web Services - Part 1.pdf
Session 8 Android Web Services - Part 1.pdfEngmohammedAlzared
 
Getting to Grips with RESTful APIs
Getting to Grips with RESTful APIsGetting to Grips with RESTful APIs
Getting to Grips with RESTful APIsPetko Mikhailov
 
O reilly sacon2018nyc - restful api design - master - v1.0
O reilly sacon2018nyc - restful api design - master - v1.0O reilly sacon2018nyc - restful api design - master - v1.0
O reilly sacon2018nyc - restful api design - master - v1.0Tom Hofte
 
Building A Great API - Evan Cooke, Cloudstock, December 2010
Building A Great API - Evan Cooke, Cloudstock, December 2010Building A Great API - Evan Cooke, Cloudstock, December 2010
Building A Great API - Evan Cooke, Cloudstock, December 2010Twilio Inc
 
API (Application program interface)
API (Application program interface)API (Application program interface)
API (Application program interface)Muhammad Jahanzaib
 
Creating a mule project with raml and api
Creating a mule project with raml and apiCreating a mule project with raml and api
Creating a mule project with raml and apiBhargav Ranjit
 
The ultimate api checklist by Blendr.io
The ultimate api checklist by Blendr.ioThe ultimate api checklist by Blendr.io
The ultimate api checklist by Blendr.ioBlendr.io
 
In salesfroce there are 4 types of api
In salesfroce there are 4 types of apiIn salesfroce there are 4 types of api
In salesfroce there are 4 types of apiDevang Rana
 
APIs explained for product managers
APIs explained for product managersAPIs explained for product managers
APIs explained for product managersRichard Holmes
 
API_Design_Rest_Princple.pdf
API_Design_Rest_Princple.pdfAPI_Design_Rest_Princple.pdf
API_Design_Rest_Princple.pdfHuan Le Trong
 

Similar to Moving into API documentation writing (20)

Introduction to API
Introduction to APIIntroduction to API
Introduction to API
 
O'Reilly SACon San Jose, CA - 2019 - API design tutorial
O'Reilly SACon San Jose, CA - 2019 - API design tutorialO'Reilly SACon San Jose, CA - 2019 - API design tutorial
O'Reilly SACon San Jose, CA - 2019 - API design tutorial
 
Best practices and advantages of REST APIs
Best practices and advantages of REST APIsBest practices and advantages of REST APIs
Best practices and advantages of REST APIs
 
Understanding REST APIs in 5 Simple Steps
Understanding REST APIs in 5 Simple StepsUnderstanding REST APIs in 5 Simple Steps
Understanding REST APIs in 5 Simple Steps
 
Understanding REST APIs in 5 Simple Steps
Understanding REST APIs in 5 Simple StepsUnderstanding REST APIs in 5 Simple Steps
Understanding REST APIs in 5 Simple Steps
 
API Documentation.pptx
API Documentation.pptxAPI Documentation.pptx
API Documentation.pptx
 
API Documentation.pptx
API Documentation.pptxAPI Documentation.pptx
API Documentation.pptx
 
Apitesting.pptx
Apitesting.pptxApitesting.pptx
Apitesting.pptx
 
API Management Workshop (at Startupbootcamp Berlin)
API Management Workshop (at Startupbootcamp Berlin)API Management Workshop (at Startupbootcamp Berlin)
API Management Workshop (at Startupbootcamp Berlin)
 
API Design- Best Practices
API Design-   Best PracticesAPI Design-   Best Practices
API Design- Best Practices
 
Session 8 Android Web Services - Part 1.pdf
Session 8 Android Web Services - Part 1.pdfSession 8 Android Web Services - Part 1.pdf
Session 8 Android Web Services - Part 1.pdf
 
Getting to Grips with RESTful APIs
Getting to Grips with RESTful APIsGetting to Grips with RESTful APIs
Getting to Grips with RESTful APIs
 
O reilly sacon2018nyc - restful api design - master - v1.0
O reilly sacon2018nyc - restful api design - master - v1.0O reilly sacon2018nyc - restful api design - master - v1.0
O reilly sacon2018nyc - restful api design - master - v1.0
 
Building A Great API - Evan Cooke, Cloudstock, December 2010
Building A Great API - Evan Cooke, Cloudstock, December 2010Building A Great API - Evan Cooke, Cloudstock, December 2010
Building A Great API - Evan Cooke, Cloudstock, December 2010
 
API (Application program interface)
API (Application program interface)API (Application program interface)
API (Application program interface)
 
Creating a mule project with raml and api
Creating a mule project with raml and apiCreating a mule project with raml and api
Creating a mule project with raml and api
 
The ultimate api checklist by Blendr.io
The ultimate api checklist by Blendr.ioThe ultimate api checklist by Blendr.io
The ultimate api checklist by Blendr.io
 
In salesfroce there are 4 types of api
In salesfroce there are 4 types of apiIn salesfroce there are 4 types of api
In salesfroce there are 4 types of api
 
APIs explained for product managers
APIs explained for product managersAPIs explained for product managers
APIs explained for product managers
 
API_Design_Rest_Princple.pdf
API_Design_Rest_Princple.pdfAPI_Design_Rest_Princple.pdf
API_Design_Rest_Princple.pdf
 

More from Ellis Pratt

COVID-19: The future of organisations and the future of technical communication
COVID-19: The future of organisations and the future of technical communicationCOVID-19: The future of organisations and the future of technical communication
COVID-19: The future of organisations and the future of technical communicationEllis Pratt
 
Structured writing presentation to London Content Strategy Meetup
Structured writing presentation to London Content Strategy MeetupStructured writing presentation to London Content Strategy Meetup
Structured writing presentation to London Content Strategy MeetupEllis Pratt
 
Writing at 240 words per minute - The Open Steno Project
Writing at 240 words per minute - The Open Steno ProjectWriting at 240 words per minute - The Open Steno Project
Writing at 240 words per minute - The Open Steno ProjectEllis Pratt
 
Towards an Agile Authoring methodology: Learning from Lean
Towards an Agile Authoring methodology: Learning from LeanTowards an Agile Authoring methodology: Learning from Lean
Towards an Agile Authoring methodology: Learning from LeanEllis Pratt
 
The changing nature of technical content (tekom tcworld 2013 conference)
The changing nature of technical content (tekom tcworld 2013 conference)The changing nature of technical content (tekom tcworld 2013 conference)
The changing nature of technical content (tekom tcworld 2013 conference)Ellis Pratt
 
Adobe Day Europe panel discussion slides: Assisting the millennial user – cha...
Adobe Day Europe panel discussion slides: Assisting the millennial user – cha...Adobe Day Europe panel discussion slides: Assisting the millennial user – cha...
Adobe Day Europe panel discussion slides: Assisting the millennial user – cha...Ellis Pratt
 
Technical writing career paths in the UK
Technical writing  career paths in the UKTechnical writing  career paths in the UK
Technical writing career paths in the UKEllis Pratt
 
What can content strategists learn from historical fighting manuals?
What can content strategists learn from historical fighting manuals?What can content strategists learn from historical fighting manuals?
What can content strategists learn from historical fighting manuals?Ellis Pratt
 
You win! Applying gamification to user assistance
You win! Applying gamification to user assistanceYou win! Applying gamification to user assistance
You win! Applying gamification to user assistanceEllis Pratt
 
Writing as a career in IT
Writing as a career in ITWriting as a career in IT
Writing as a career in ITEllis Pratt
 
Technical Writer - Exploding the myths
Technical Writer - Exploding the mythsTechnical Writer - Exploding the myths
Technical Writer - Exploding the mythsEllis Pratt
 

More from Ellis Pratt (12)

COVID-19: The future of organisations and the future of technical communication
COVID-19: The future of organisations and the future of technical communicationCOVID-19: The future of organisations and the future of technical communication
COVID-19: The future of organisations and the future of technical communication
 
Structured writing presentation to London Content Strategy Meetup
Structured writing presentation to London Content Strategy MeetupStructured writing presentation to London Content Strategy Meetup
Structured writing presentation to London Content Strategy Meetup
 
Writing at 240 words per minute - The Open Steno Project
Writing at 240 words per minute - The Open Steno ProjectWriting at 240 words per minute - The Open Steno Project
Writing at 240 words per minute - The Open Steno Project
 
Towards an Agile Authoring methodology: Learning from Lean
Towards an Agile Authoring methodology: Learning from LeanTowards an Agile Authoring methodology: Learning from Lean
Towards an Agile Authoring methodology: Learning from Lean
 
The changing nature of technical content (tekom tcworld 2013 conference)
The changing nature of technical content (tekom tcworld 2013 conference)The changing nature of technical content (tekom tcworld 2013 conference)
The changing nature of technical content (tekom tcworld 2013 conference)
 
Adobe Day Europe panel discussion slides: Assisting the millennial user – cha...
Adobe Day Europe panel discussion slides: Assisting the millennial user – cha...Adobe Day Europe panel discussion slides: Assisting the millennial user – cha...
Adobe Day Europe panel discussion slides: Assisting the millennial user – cha...
 
Technical writing career paths in the UK
Technical writing  career paths in the UKTechnical writing  career paths in the UK
Technical writing career paths in the UK
 
What can content strategists learn from historical fighting manuals?
What can content strategists learn from historical fighting manuals?What can content strategists learn from historical fighting manuals?
What can content strategists learn from historical fighting manuals?
 
You win! Applying gamification to user assistance
You win! Applying gamification to user assistanceYou win! Applying gamification to user assistance
You win! Applying gamification to user assistance
 
Writing as a career in IT
Writing as a career in ITWriting as a career in IT
Writing as a career in IT
 
Technical Writer - Exploding the myths
Technical Writer - Exploding the mythsTechnical Writer - Exploding the myths
Technical Writer - Exploding the myths
 
Twitter
TwitterTwitter
Twitter
 

Recently uploaded

Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Scott Andery
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...panagenda
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 

Recently uploaded (20)

Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 

Moving into API documentation writing

  • 2. About me Director at Cherryleaf, a technical writing services and training company in the UK (with an API training course)
  • 3. About you Who creates API documentation today?
  • 4. Overview 1. What is an API? 2. APIs and the role of documentation 3. The role of an API documentation writer 4. The skills you need 5. The tools 6. Becoming an API documentation writer Image: Tim Peake
  • 6. A way for applications to exchange information
  • 7. Lots of websites use information from APIs Find a GP near to your postcode Information is requested from the NHS Choices API and displayed on the web page www.whereilive.norfolk.gov.uk
  • 9. What developers do with APIs API App Developer Developers write code to take the data provided in the response and use it in their applications (“parsing”) There is code in the Web page to request data and then display the data on a map NHS application containing list of GP practices in a database
  • 10. APIs types you’ll probably see REST APIs Native library APIs (for Java, C++, .NET etc)
  • 11. http protocols Users make requests for the resources on a Web server. The server returns responses containing the information. API http request -> <- http response
  • 14. A hospital API An API will consist of a set of rules describing how an application can interact with it and the mechanisms that allow such interaction to happen. API
  • 15. Example - Your NHS number The API might state it wants the NHS number in: numerical (9434765919) or alphanumerical string (“943-476-5919”) format.
  • 16. Resources API App Request These are the “information objects” the API can exchange Resources have data associated with them (e.g. the patients’ names)
  • 18. API Rules A hospital API will consist of a set of rules describing how an application can interact with it (specifically, a resource): Create/Add information (Post) Request information (Get) Update information (Put/Patch) Delete information (Delete) (and run an application)
  • 19. Requests to an API Get me Jane Brown’s records Get me a list of all the patients leaving hospital today Get me the Consultant’s name who is attached to Mrs Brown etc GET http://ABC-hospital.nhs/patient/ JaneBrown curl --get -k --include "http://ABC- hospital.nhs/patient/?name=jane brown&NHS=9434765900" -H "X-Key: ABC12345" -H "Accept: text/plain curl -X GET -H "Cache-Control: no- cache" -H "Postman-Token: 97bb9ba5- f763-208e-b9e4-5d7bd3861835" "https:// fhir-open-api-dstu2.smarthealthit.org/ Patient/1551992"
  • 20. How do the API team create APIs? They may use an API Specification They may make REST calls in the programming language they are using API API Team
  • 21. They may use a type of API Specification API Specification tools can generate the code for REST calls in a programming language. Programmers can then add this code to their application.
  • 22. 2.APIs and the role of documentation
  • 23. What content goes into an API document? Content Buzzword A clear definition of what resource it represents Resource description The accepted input Parameters, Request submission example The produced output Request response example Links (where can you go to find what exactly) Endpoints
  • 24. Automatically generated content When you describe your API using the Swagger or RAML specification, some tools can read those specifications will generate an interactive documentation output.
  • 26. Explain what it does What it does The overall process Any underlying concepts
  • 27. Signing up for an account Signing up for an account Getting API authorisation keys
  • 28. The 3-30-3 goal The 3-30-3 goal 3 seconds - what it does 30 seconds - why you should use it 3 minutes - to do something
  • 29. TTFHW - Time to first "Hello World" A simple exercise How quickly you can get an application to output “Hello World”? For APIs it might be how to construct a request and receive a valid response.
  • 31. Why do we need code samples? REST APIs aren’t tied to a specific programming language So developers may need advice on how to submit HTTP requests in their particular programming language
  • 32. Creating code samples Some API providers decide to provide one code sample (usually in cURL) and let the developer extrapolate the format in his or her own programming language. curl --get -k --include "http://ABC-hospital.nhs/ patient/?name=jane brown&NHS=9434765900" -H "X- Key: ABC12345" -H "Accept: text/plain
  • 33. Creating code samples Others want to encourage developers to use their API, and want to make it as easy as possible by providing code samples.
  • 34. Creating code samples - Don’t panic! In some cases, developers supply the code samples You briefly add comments to the code samples. The patterns for making REST requests in different programming languages follow a common template.
  • 35. 3.The role of an API documentation writer
  • 36. Technical Author Task-based content To a less technical audience What Technical Authors do
  • 37. What Technical Authors do Technical Author Filter content for different audiences Publish to different media Re-use content Localise
  • 38. API Writer Reference-based content* To a technical audience Single use document English only What API doc writers do * Mostly
  • 39. There are some differences Technical Author API Writer Task-based content Reference-based content To a non-technical audience To a technical audience Re-use content Single use Localise English only
  • 41. Skills required Technical Author API Writer 1 Writing skills Coding sample writing skills 2 Time management skills Domain knowledge 3 Tools skills Tools skills 4 Domain knowledge Time management skills 5 Writing skills
  • 43. API tools for documentation
  • 44. Developers may be writing Comments in code The documentation Using their own tools
  • 45. API doc writers’ tools Less sophisticated Built to suit the developers’ workflow Low cost, open source Simple markup
  • 46. Improving the tools It’s getting there Lightweight DITA may help
  • 48. The grass is greener? Lots of software developer are currently working on APIs
  • 49. Let’s look at some vacancies On reed.co.uk from mid- February 2016……
  • 50.
  • 51.
  • 52. Search carried out on 15/2/2016 Of the 5,000 UK Technical Authors on LinkedIn 173 included “API” in their profile
  • 53. Finding a unicorn “Finding a technical writer who commands a high degree of English language fluency in addition to possessing a deep technical knowledge of Java, Python, C++, .NET, Ruby, and more is like finding a unicorn.” Tom Johnson Flickr image: Owlana
  • 54. A lot of recruitment is by word of mouth Following entrepreneurs as they more from business to business
  • 55. Improve skills You can get by with a wide and shallow understanding of programming
  • 56. Improve skills Learn Python basics Understand what the tools can do Assist on open source projects More training courses are emerging
  • 58. What are the takeaways? It’s a growing area It’s changing rapidly It requires more technical skills It’s well paid
  • 61. End © Cherryleaf 2016 Images and screenshots © their respective owners