def api_prefix(url_prefix=None, api_version=None):
 if (url_prefix is None):
  url_prefix = config.URL_PREFIX
 if (api_version is None):
  api_version = config.API_VERSION
 prefix = (('/%s' % url_prefix) if url_prefix else '')
 version = (('/%s' % api_version) if api_version else '')
 return (prefix + version)

def api_prefix ( url_prefix = None , api_version = None ) : if ( url_prefix is None ) : url_prefix = config . URL_PREFIX if ( api_version is None ) : api_version = config . API_VERSION prefix = ( ( '/%s' % url_prefix ) if url_prefix else '' ) version = ( ( '/%s' % api_version ) if api_version else '' ) return ( prefix + version )
returns the prefix to api endpoints .