def api_url(full_version, resource):
return '<STR_LIT>'.format(dna.utils.Version(full_version).major, resource)<EOL>
>>> # Harmonize api endpoints
>>> # __version__ should be like major.minor.fix
>>> from my_app import __version__
>>> api_url(__version__, '/some/endpoint')
/v0/some/endpoint