{
"import_id": 7
}
{
"data": {
"import_id": 7
}
}
@api_view(['GET'])
@renderer_classes([JSONRenderer])
def get_data(request, format=None):
"""
A view that returns JSON.
"""
data = {
"import_id": 7
}
content = {'data': data}
return Response(content)