Beispiel #1
0
def create_project_post_comment():
    response = jsonapi.post_resource(db.session, request.args,
                                     request.get_json(),
                                     'project-post-comments')
    return jsonify(response.document), response.status
Beispiel #2
0
def create_subject():
    response = jsonapi.post_resource(db, request.args, request.get_json(), 'subjects')
    return jsonify(response.document), response.status
Beispiel #3
0
def create_project_post_comment():
    response = jsonapi.post_resource(db.session, request.args, request.get_json(), 'project-post-comments')
    return jsonify(response.document), response.status
Beispiel #4
0
def create_gene_comment():
    response = jsonapi.post_resource(db, request.args, request.get_json(), 'gene-comments', ['body'])
    return jsonify(response.document), response.status