docstr: List all views
docstr_tok: ["List","all","views"]
code: def get(self, project_name):
      """List all views"""
      session = SessionController()
      try:
          project = session.database_controller.get_project(
              project_name
          )
      except NoResultFound:
          abort(
              HTTPStatus.NOT_FOUND,
              f"Project name {project_name} does not exist",
          )
  
      all_views = project.get_views()
      all_view_objs = []
      # Only want to return relevant fields to the user.
      for view in all_views:
          all_view_objs.append(
              {
                  "id": view["metadata"]["id"],
                  "name": view["name"],
                  "query": view["query"],
              }
          )
      return all_view_objs
  
file_path: mindsdb/mindsdb/api/http/namespaces/views.py
imports: from http import HTTPStatus
  from flask import request
  from flask_restx import Resource, abort
  from sqlalchemy.exc import NoResultFound
  from mindsdb.api.http.namespaces.configs.projects import ns_conf
  from mindsdb.api.executor.controllers.session_controller import SessionController
label_desc: Use image node_id 1 for calling the ViewsList obj's underlying member method code with example usage: obj.get(project_name) and returns: all_view_objs