api.rst added to docs