class_docstr: Advanced Data Type Rest API
  -Will return available AdvancedDataTypes when the /types endpoint is accessed
  -Will return a AdvancedDataTypeResponse object when the /convert endpoint is accessed
  and is passed in valid arguments
class_docstr_tok: ["Advanced","Data","Type","Rest","API","-Will","return","available","AdvancedDataTypes","when","the","\/types","endpoint","is","accessed","-Will","return","a","AdvancedDataTypeResponse","object","when","the","\/convert","endpoint","is","accessed","and","is","passed","in","valid","arguments"]
docstr: Return an AdvancedDataTypeResponse object populated with the passed in args.
  ---
  get:
    summary: Return an AdvancedDataTypeResponse
    description: >-
      Returns an AdvancedDataTypeResponse object populated with the passed in args.
    parameters:
    - in: query
      name: q
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/advanced_data_type_convert_schema'
    responses:
      200:
        description: >-
          AdvancedDataTypeResponse object has been returned.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AdvancedDataTypeSchema'
      400:
        $ref: '#/components/responses/400'
      401:
        $ref: '#/components/responses/401'
      404:
        $ref: '#/components/responses/404'
      500:
        $ref: '#/components/responses/500'
docstr_tok: ["Return","an","AdvancedDataTypeResponse","object","populated","with","the","passed","in","args",".","--","-","get",":","summary",":","Return","an","AdvancedDataTypeResponse","description",":",">","-","Returns","an","AdvancedDataTypeResponse","object","populated","with","the","passed","in","args",".","parameters",":","-","in",":","query","name",":","q","content",":","application\/json",":","schema",":","$","ref",":","'","#","\/components\/schemas\/advanced_data_type_convert_schema'","responses",":","200",":","description",":",">","-","AdvancedDataTypeResponse","object","has","been","returned",".","content",":","application\/json",":","schema",":","$","ref",":","'","#","\/components\/schemas\/AdvancedDataTypeSchema'","400",":","$","ref",":","'","#","\/components\/responses\/400'","401",":","$","ref",":","'","#","\/components\/responses\/401'","404",":","$","ref",":","'","#","\/components\/responses\/404'","500",":","$","ref",":","'","#","\/components\/responses\/500","'"]
code: def get(self, **kwargs: Any) -> Response:
      """Return an AdvancedDataTypeResponse object populated with the passed in args.
      ---
      get:
        summary: Return an AdvancedDataTypeResponse
        description: >-
          Returns an AdvancedDataTypeResponse object populated with the passed in args.
        parameters:
        - in: query
          name: q
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/advanced_data_type_convert_schema'
        responses:
          200:
            description: >-
              AdvancedDataTypeResponse object has been returned.
            content:
              application/json:
                schema:
                  $ref: '#/components/schemas/AdvancedDataTypeSchema'
          400:
            $ref: '#/components/responses/400'
          401:
            $ref: '#/components/responses/401'
          404:
            $ref: '#/components/responses/404'
          500:
            $ref: '#/components/responses/500'
      """
      item = kwargs["rison"]
      advanced_data_type = item["type"]
      values = item["values"]
      addon = ADVANCED_DATA_TYPES.get(advanced_data_type)
      if not addon:
          return self.response(
              400,
              message=_(
                  "Invalid advanced data type: %(advanced_data_type)s",
                  advanced_data_type=advanced_data_type,
              ),
          )
      bus_resp: AdvancedDataTypeResponse = addon.translate_type(
          {
              "values": values,
          }
      )
      return self.response(200, result=bus_resp)
  
file_path: superset/superset/advanced_data_type/api.py
imports: from typing import Any
  from flask import current_app
  from flask.wrappers import Response
  from flask_appbuilder.api import expose, permission_name, protect, rison, safe
  from flask_babel import lazy_gettext
  from superset.advanced_data_type.schemas import advanced_data_type_convert_schema, AdvancedDataTypeSchema
  from superset.advanced_data_type.types import AdvancedDataTypeResponse
  from superset.extensions import event_logger
  from superset.views.base_api import BaseSupersetApi
label_desc: Use image node_id 1 for calling the AdvancedDataTypeRestApi obj's underlying member method code with example usage: obj.get() and returns: self, self