@app.route('/v1/users', methods=['GET', 'POST'])
@app.route('/v1/users/', methods=['GET', 'POST'])
def get_post_users():
    if flask.request.method == 'GET':
        return toolkit.response('OK', 200)
    try:
        # Note(dmp): unicode patch
        json.loads(flask.request.data.decode('utf8'))
    except __HOLE__:
        return toolkit.api_error('Error Decoding JSON', 400)
    return toolkit.response('User Created', 201)
dataset/ETHPy150Open docker/docker-registry/docker_registry/index.py/get_post_users