Added the api.rst file