def association(service, assoc):
    jones = Jones(service, get_zk())

    if request.method == 'GET':
        if request_wants('application/json'):
            return jsonify(jones.get_config(assoc))
    if request.method == 'PUT':
        jones.assoc_host(assoc, Env(request.form['env']))
        return service, 201
    elif request.method == 'DELETE':
        jones.delete_association(assoc)
        return service, 200