@csrf_exempt
def instances_list(request):

    if request.method.startswith("POST"):
        return instance_create(request)
    else:
        return instance_list(request)
Lists all instances (GET) or creates an instance (POST).
dataset/ETHPy150Open bmbouter/Opus/opus/project/dcmux/views.py/instances_list