Add the basic API automatic document

The basic API document rst files has been automatically generated by the
sphinx-apidoc script and placed in the api/ directory of the docs/
directory.