parameters: ()
return_statement: return jsonify(versions), 200, {"Content-Type": "application/json"}
docstring: Get information about Indigo, Bingo, Service and Imago versions
      ---
      tags:
        - version
      responses:
        200:
          description: JSON with service, indigo, bingo and imago vesrions
docstring_summary: Get information about Indigo, Bingo, Service and Imago versions
      ---
      tags:
        - version
      responses:
        200:
          description: JSON with service, indigo, bingo and imago vesrions
docstring_tokens: Get information about Indigo Bingo Service and Imago versions --- tags : - version responses : 200 : description : JSON with service indigo bingo and imago vesrions
function: def version():
      """
      Get information about Indigo, Bingo, Service and Imago versions
      ---
      tags:
        - version
      responses:
        200:
          description: JSON with service, indigo, bingo and imago vesrions
      """
      versions = {}
  
      # if is_indigo_db():
      #     versions['bingo_version'] = db_session.execute("SELECT Bingo.GetVersion();").fetchone()[0]
      indigo = indigo_init()
      versions["indigo_version"] = indigo.version()
  
      # with open('/srv/service_version', 'r') as ver:
      #     imago_versions = []
      #     for line in ver.readlines():
      #         if line.startswith("imago-console-"):
      #             imago_versions.append(re.search('imago-console-(.*)\..*', line).group(1))
      #         else:
      #             versions['service_version'] = line.rstrip()
      # versions['imago_versions'] = imago_versions
  
      return jsonify(versions), 200, {"Content-Type": "application/json"}
function_tokens: def version ( ) : versions = { } # if is_indigo_db(): #     versions['bingo_version'] = db_session.execute("SELECT Bingo.GetVersion();").fetchone()[0] indigo = indigo_init ( ) versions [ "indigo_version" ] = indigo . version ( ) # with open('/srv/service_version', 'r') as ver: #     imago_versions = [] #     for line in ver.readlines(): #         if line.startswith("imago-console-"): #             imago_versions.append(re.search('imago-console-(.*)\..*', line).group(1)) #         else: #             versions['service_version'] = line.rstrip() # versions['imago_versions'] = imago_versions return jsonify ( versions ) , 200 , { "Content-Type" : "application/json" }