Updated the docstring in api.py to use reStructured.