def add_hal_structure(data, request, type='application/json'):
    """
    Adds initial HAL structure to existing dictionary
    """
    data["_links"] = {
        "curies": {
            "href": "http://ozoneplatform.org/docs/rels/{rel}",
            "name": "ozp",
            "templated": True
        },
        "self": {
            "href": '{0!s}'.format(request.build_absolute_uri(request.path)),
            "type": type
        }
    }
    data["_embedded"] = {}
    return data