Write the API documentation