<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_api(self):
 """Create the REST API."""

        created_api = self.client.create_rest_api(name=self.trigger_settings.get('api_name', self.app_name))
        api_id = created_api['id']
        self.log.info("Successfully created API")
        return api_id