api/copy_study_api.py
def export_study_settings_file(study_id):
    """ Endpoint that returns a json representation of a study. """
    study = Study.objects.get(pk=study_id)
    filename = study.name.replace(' ', '_') + "_surveys_and_settings.json"
    return Response(
        format_study(study),
        mimetype="application/json",
        headers={'Content-Disposition': 'attachment;filename=' + filename}
    )
 Endpoint that returns a json representation of a study. 
Endpoint that returns a json representation of a study.
Endpoint that returns a json representation of a study .
def export_study_settings_file(study_id):
    study = Study.objects.get(pk=study_id)
    filename = study.name.replace(' ', '_') + "_surveys_and_settings.json"
    return Response(
        format_study(study),
        mimetype="application/json",
        headers={'Content-Disposition': 'attachment;filename=' + filename}
    )
def export_study_settings_file ( study_id ) : study = Study . objects . get ( pk = study_id ) filename = study . name . replace ( ' ' , '_' ) + "_surveys_and_settings.json" return Response ( format_study ( study ) , mimetype = "application/json" , headers = { 'Content-Disposition' : 'attachment;filename=' + filename } )
Endpoint that returns a json representation of a study.
Endpoint that returns a json representation of a study .
""" Endpoint that returns a json representation of a study. """
study_id