Esempio n. 1
0
def process_check_ins(identifier, **params):
    api_method = 'Tournaments : Process Check-ins'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/process_check_ins'
    return tools.request('POST', target, api_method, prefix, 0, **params)
Esempio n. 2
0
def update(identifier, **params):
    api_method = 'Tournaments : Update'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier
    return tools.request('PUT', target, api_method, prefix, 1, **params)
Esempio n. 3
0
def destroy(identifier):
    api_method = 'Tournaments : Destroy'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier
    return tools.request('DELETE', target, api_method, prefix, 0)
Esempio n. 4
0
def destroy(identifier, match_id, attachment_id):
    api_method = 'Match Attachments : Destroy'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/matches/' + str(match_id) + '/attachments/'\
        + str(attachment_id)
    return tools.request('DELETE', target, api_method, prefix, 0)
Esempio n. 5
0
def bulk_add(identifier, **params):
    api_method = 'Participants : Bulk Add'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/participants/bulk_add'
    return tools.request('POST', target, api_method, 'participants[]', 1,
                         **params)
Esempio n. 6
0
def finalize(identifier, **params):
    api_method = 'Tournaments : Finalize'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/finalize'
    return tools.request('POST', target, api_method, prefix, 0, **params)
Esempio n. 7
0
def show(identifier, match_id, attachment_id):
    api_method = 'Match Attachments : Show'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/matches/' + str(match_id) + '/attachments/'\
        + str(attachment_id)
    return tools.request('GET', target, api_method, prefix, 0)
Esempio n. 8
0
def randomize(identifier):
    api_method = 'Participants : Randomize'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/participants/randomize'
    return tools.request('POST', target, api_method, prefix, 0)
Esempio n. 9
0
def show(identifier, match_id, **params):
    api_method = 'Matches  : Show'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/matches/' + str(match_id)
    return tools.request('GET', target, api_method, prefix, 0, **params)
Esempio n. 10
0
def undo_check_in(identifier, participant_id):
    api_method = 'Participants : Undo Check In'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/participants/' + \
        str(participant_id) + '/undo_check_in'
    return tools.request('POST', target, api_method, prefix, 0)
Esempio n. 11
0
def destroy(identifier, participant_id):
    api_method = 'Participants : Destroy'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/participants/' + str(participant_id)
    return tools.request('DELETE', target, api_method, prefix, 0)
Esempio n. 12
0
def index(identifier):
    api_method = 'Participants : Index'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/participants'
    return tools.request('GET', target, api_method, prefix, 0)
Esempio n. 13
0
def update(identifier, participant_id, **params):
    api_method = 'Participants : Update'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/participants/' + str(participant_id)
    return tools.request('PUT', target, api_method, prefix, 1, **params)
Esempio n. 14
0
def show(identifier, participant_id, **params):
    api_method = 'Participants : Show'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/participants/' + str(participant_id)
    return tools.request('GET', target, api_method, prefix, 0, **params)
Esempio n. 15
0
def abort_check_in(identifier, **params):
    api_method = 'Tournaments : Abort Check-in'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/abort_check_in'
    return tools.request('POST', target, api_method, prefix, 0, **params)
Esempio n. 16
0
def reopen(identifier, match_id):
    api_method = 'Matches  : Reopen'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/matches/' + str(match_id) + '/reopen'
    return tools.request('POST', target, api_method, prefix, 0)
Esempio n. 17
0
def index(**params):
    api_method = 'Tournaments : Index'
    return tools.request('GET', '', api_method, prefix, 0, **params)
Esempio n. 18
0
def index(identifier, **params):
    api_method = 'Matches : Index'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/matches'
    return tools.request('GET', target, api_method, prefix, 0, **params)
Esempio n. 19
0
def reset(identifier, **params):
    api_method = 'Tournaments : Reset'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/reset'
    return tools.request('POST', target, api_method, prefix, 0, **params)
Esempio n. 20
0
def create(**params):
    api_method = 'Tournaments : Create'
    return tools.request('POST', '', api_method, prefix, 1, **params)
Esempio n. 21
0
def update(identifier, match_id, attachment_id, **params):
    api_method = 'Match Attachments : Update'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/matches/' + str(match_id) + '/attachments/'\
        + str(attachment_id)
    return tools.request('PUT', target, api_method, prefix, 1, **params)
Esempio n. 22
0
def show(identifier, **params):
    api_method = 'Tournaments : Show'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier
    return tools.request('GET', target, api_method, prefix, 0, **params)
Esempio n. 23
0
def index(identifier, match_id):
    api_method = 'Match Attachments : Index'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/matches/' + str(match_id) + '/attachments'
    return tools.request('GET', target, api_method, prefix, 0)
Esempio n. 24
0
def create(identifier, **params):
    api_method = 'Participants : Create'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/participants'
    return tools.request('POST', target, api_method, prefix, 1, **params)