async open(id, version) {
    this.unresolvedAmf = undefined;
    this.amf = undefined;
    this.apiProcessing = true;
    try {
      const result = await this.getApi(id, version);
      let api = result.api;
      if (api && typeof api !== 'string') {
        api = JSON.stringify(api);
      }
      this.unresolvedAmf = api;
      this.apiType = result.type;
      this.apiProcessing = false;
    } catch (e) {
      this.apiProcessing = false;
      this.log.error(e);
      throw e;
    }
  }
/**
   * Opens previously saved API.
   * @param {String} id API database ID
   * @param {?String} version API version. Default to latest version
   * @return {Prommise} Promise resolved when API unresolved data are set.
   * Note, property change observers will run model resolving API when
   * unresolved model and type is set.
   */
Opens previously saved API.
@param {String} id API database ID
@param {?String} version API version. Default to latest version
@return {Prommise} Promise resolved when API unresolved data are set.
Note, property change observers will run model resolving API when
unresolved model and type is set.
Opens previously saved API . @param { String } id API database ID @param { ?String } version API version . Default to latest version @return { Prommise } Promise resolved when API unresolved data are set . Note property change observers will run model resolving API when unresolved model and type is set .
async open(id, version) {
    this.unresolvedAmf = undefined;
    this.amf = undefined;
    this.apiProcessing = true;
    try {
      const result = await this.getApi(id, version);
      let api = result.api;
      if (api && typeof api !== 'string') {
        api = JSON.stringify(api);
      }
      this.unresolvedAmf = api;
      this.apiType = result.type;
      this.apiProcessing = false;
    } catch (e) {
      this.apiProcessing = false;
      this.log.error(e);
      throw e;
    }
  }
async open ( id , version ) { this . unresolvedAmf = undefined ; this . amf = undefined ; this . apiProcessing = true ; try { const result = await this . getApi ( id , version ) ; let api = result . api ; if ( api && typeof api !== 'string' ) { api = JSON . stringify ( api ) ; } this . unresolvedAmf = api ; this . apiType = result . type ; this . apiProcessing = false ; } catch ( e ) { this . apiProcessing = false ; this . log . error ( e ) ; throw e ; } }
Opens previously saved API.
Opens previously saved API .