def METHOD_NAME(request):
  response = {'status': -1}
  name = request.POST.get('name')
  client = SolrClient(user=request.user)
  response['schema'] = client.list_schema(name)
  response['name'] = name
  response['status'] = 0
  return JsonResponse(response)