You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

17 lines
356 B

from panban.json_api.exceptions import NoSuchJSONAPIVersionException
HIGHEST_VERSION = '1'
AVAILABLE_VERSIONS = [
'1',
]
def get_api_version(value):
if value == 'max':
value = HIGHEST_VERSION
if value == '1':
from panban.json_api import json_api_v1
return json_api_v1
raise NoSuchJSONAPIVersionException(value)