def put(self, request, *args, **kwargs): """Update environment.""" envs = request.DATA json_validate(SPECS.get('environment_put')).validate(envs) response = list() for env in envs['environments']: env_obj = facade.update_environment(env) response.append({'id': env_obj.id}) return Response(response, status=status.HTTP_200_OK)
def put(self, request, *args, **kwargs): """Update environment.""" envs = request.DATA json_validate(SPECS.get('environment_put')).validate(envs) response = list() for env in envs['environments']: env_obj = facade.update_environment(env) response.append({ 'id': env_obj.id }) return Response(response, status=status.HTTP_200_OK)