Register API

@param {Object} apiConfig the api config to register
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]);
    });
}