doc: fix API documentation for "refresh"
doc: rename the API documentation to `API.rst`

This allows GitHub to display the appropriate formatting.