API-Doc

by Todd Nightingale
This document is designed to explain the ACS API documentation access tools.

Big Picture

The ACS has hundreds of procedures (1478) which define it's internal and external api. Developers need a simple way to access all of the documentation available for the procedures available to them.

The Implementation

The new API-Doc submodule gives users the ability to reach the documentation of any procedure loaded into server memory which has been defined with proc_doc or ad_proc.

Data Model

In order to implicitly synchronize the available procedures and the API documentation, the procedure documentation information is stored in the nsv_array api-doc-procs. Data is inserted into the array by ad_proc when the procedure is loaded into server memory. The api_proc_doc nsv_array contains elements for every defined procedure, so [nsv get api_proc_doc procedure_name] will return the documentation for procedure_name. This information is it self an array with the following fields: These are not all available for all the procedures and procedures can have more defined fields in the array if procs define other @_field_name_ fields in the main documentation
tnight@mit.edu