AAVISTA OY
Merja Kajava
@mkajava
APIOPS MEETUP
ELEMENTS OF A GREAT
API REFERENCE
17.3.2020
WHERETO FINDTHE API?
PROVIDE AN EASY ACCESS TO API REFERENCE
YOU DO NEEDTHE DEVELOPER SITE
EASY ACCESS TO API REFERENCE
PDFdeveloper.mysite.com
4
Detailed
documentation
API REFERENCE
Developer support
SUPPORT
DEVELOPER SITE
Getting started
Concepts
Examples
API
DOCUMENTATION
Experiment with API
SANDBOX
Changes to API and
documentation
RELEASE NOTES
Uptime for API
UPTIME STATUS
WHERE IS THE API REFERENCE FOR MY USE CASE?
6
API REFERENCE ORGANIZED BY USE CASE
GOOD EXAMPLES NEEDED
Include also proper decriptions. Is
country_code here ‘US’ or ‘USA’.
DESCRIBE THE FIELD PURPOSE
‘Foo’ or ‘null’ or ‘string’ is not a
helpful example.
USE PROPER EXAMPLES
WRITING GOOD API EXAMPLES IS NOT EASY
HOWTO DEAL WITH ERRORS
Describe HTTP status codes
Identify error types
HOW TO DEAL WITH ERRORS?
PROVIDE EXAMPLES FOR ERROR RESPONSES
KEY ELEMENTS
Provide the developer site with easy to find API
reference
Describe the API properly
Use good example values
Describe error handling
ELEMENTS OF A GREAT API REFERENCE
THE DEVIL ALWAYS IS INTHE
DETAILS
The Data Refinery Company
MERJA KAJAVA
@mkajava
https://www.linkedin.com/in/merjakajava

Elements of a Great API Reference