def default_post_view(resource, request):
    try:
        data = request.json_body
    except __HOLE__:
        request.response.status_int = 400
        return {'message': 'No JSON data provided.'}
    resource.validate_child(data)
    request.response.status_int = 201
    return resource.add_child(data)
dataset/ETHPy150Open wichert/rest_toolkit/src/rest_toolkit/views.py/default_post_view