def get_endpoint(self, endpoint=None):
base_url = self.api_config.api_url<EOL>if not endpoint:<EOL><INDENT>if '<STR_LIT:localhost>' in base_url:<EOL><INDENT>endpoint = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>endpoint = ENDPOINTS[self.endpoint_type]<EOL><DEDENT><DEDENT>endpoint = '<STR_LIT:/>'.join([p.strip('<STR_LIT:/>') for p in (base_url, endpoint)]).strip('<STR_LIT:/>')<EOL>self.logger.info("<STR_LIT>", endpoint)<EOL>return endpoint<EOL>
Return interface URL endpoint.