Example #1
0
def delete_core_post_comment(post_id):
    response = jsonapi.delete_resource(db.session, 'core-post-comments',
                                       post_id)
    return jsonify(response.document), response.status
Example #2
0
def delete_project_post_comment(post_id):
    response = jsonapi.delete_resource(db.session, 'project-post-comments', post_id)
    return jsonify(response.document), response.status
Example #3
0
def delete_communication_post_comment(post_id):
    response = jsonapi.delete_resource(db.session, 'com-post-comments', post_id)
    return jsonify(response.document), response.status
Example #4
0
def delete_subject(subject_id):
    response = jsonapi.delete_resource(db, 'subjects', subject_id)
    return jsonify(response.document), response.status
Example #5
0
File: reports.py Project: zabano/dx
def delete_report_comment(report_id):
    response = jsonapi.delete_resource(db, request.get_json(), 'report-comments', report_id)
    return jsonify(response.document), response.status
Example #6
0
File: genes.py Project: zabano/dx
def delete_gene_comment(gene_id):
    response = jsonapi.delete_resource(db, 'gene-comments', gene_id)
    return jsonify(response.document), response.status