@followings.route(
    '/<path:identity>', methods=['GET'], endpoint='get_identity')
@require_authorization
def get_following_by_identity(identity):
    following = g.entity.followings.get_or_404(identity=identity)
    correct_url = url_for('followings.get', id=following.id)
    response = make_response(jsonify(following))
    response.headers['Content-Location'] = correct_url
    return response
Returns the following with a Content-Location header
dataset/ETHPy150Open pytent/pytentd/tentd/blueprints/followings.py/get_following_by_identity