function registerApi(apiConfig) {
    let baseApi = base.$api;
    apiConfig && Object.keys(apiConfig).forEach(k => {
        // TODO: when in dev mode, warn the existed API will be override
        definePropertyValue(baseApi, k, apiConfig[k]);
    });
}
function registerApi(apiConfig) {
    let baseApi = base.$api;
    apiConfig && Object.keys(apiConfig).forEach(k => {
        
        definePropertyValue(baseApi, k, apiConfig[k]);
    });
}
function registerApi ( apiConfig ) { let baseApi = base . $api ; apiConfig && Object . keys ( apiConfig ) . forEach ( k => { // TODO: when in dev mode, warn the existed API will be override definePropertyValue ( baseApi , k , apiConfig [ k ] ) ; } ) ; }
Register API

@param {Object} apiConfig the api config to register
Register API