@datlas/datamap_v2_api (axios 版本)
后端api js sdk
HOW TO USE
import { SomeApi, Configuration } from '@datlas/datamap_v2_api';
const configuration = new Configuration({
baseOptions: { Authorization: '', 'Mdt-User': '' },
basePath: '',
});
configuration.baseOptions['Authorization'] = 'XXX';
// 如果没有全局axios实例,可以使用默认 const someApi = new SomeApi(configuration, basePath);
const someApi = new SomeApi(configuration, undefined, axiosIns);
someApi.getOne();