TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
Re: What is API (Applic. Prog. Interface) documentation ?
Subject:Re: What is API (Applic. Prog. Interface) documentation ? From:Chris Hamilton <chamilton -at- GR -dot- COM> Date:Thu, 15 Jan 1998 15:45:01 -0600
@ wrote:
>
> What is the definition of and examples of what would be included in
> API (Application Program Interface) documentation?
Van--
Here's what we included in the API function and method descriptions for
our current product:
-- function/method signature
-- description
-- dependencies
-- return value
-- parameters
-- related/functions and methods
-- reference to the related user's guide section
-- code sample
The signature is a model of what the function or method looks like. For
instance:
int getInt(String parmName)
is the signature for a Java method called getInt. The method returns an
integer and takes a String parameter called _parmName_. The model would
be different, depending on the language. This is rather tedious to write
and to read all the way through, but it's intended to be used as a
reference.
It's not all that hard to write (unless you've got to read the code and
figure out what it does). I had the benefit of working off specs that
described the methods and functions before they were created. Even if
you do/can read the code, it's probably not a bad idea to confer with
your developers on the code samples, if you can.
Chris
--
Chris Hamilton, Sr. Technical Writer chamilton -at- gr -dot- com
Greenbrier & Russel http://www.gr.com
-------------------------
These views are mine, not my employer's.